Use proper tag for spa config refcounts in mmp_write_uberblock()

This allows the spa config refcounts to use tracking in debug builds
without triggering the "No such hold %p on refcount" panic.

Reviewed-by: Olaf Faaland <faaland1@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tim Chase <tim@chase2k.com>
Closes #8326
This commit is contained in:
Tim Chase 2019-01-25 11:50:06 -06:00 committed by Brian Behlendorf
parent 7646af20ad
commit 107dd2b174

View File

@ -421,7 +421,7 @@ mmp_write_uberblock(spa_t *spa)
mmp->mmp_kstat_id++, error); mmp->mmp_kstat_id++, error);
} }
mutex_exit(&mmp->mmp_io_lock); mutex_exit(&mmp->mmp_io_lock);
spa_config_exit(spa, SCL_STATE, FTAG); spa_config_exit(spa, SCL_STATE, mmp_tag);
return; return;
} }