From: Tim Chase Date: Fri, 25 Jan 2019 17:50:06 +0000 (-0600) Subject: Use proper tag for spa config refcounts in mmp_write_uberblock() X-Git-Tag: zfs-0.8.0-rc4~150 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=107dd2b1748bc4c15e5e5fa7342cfc4e61bce4ee;p=zfs 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 Reviewed-by: Brian Behlendorf Signed-off-by: Tim Chase Closes #8326 --- diff --git a/module/zfs/mmp.c b/module/zfs/mmp.c index 6fd5d3e9a..746ee0f77 100644 --- a/module/zfs/mmp.c +++ b/module/zfs/mmp.c @@ -421,7 +421,7 @@ mmp_write_uberblock(spa_t *spa) mmp->mmp_kstat_id++, error); } mutex_exit(&mmp->mmp_io_lock); - spa_config_exit(spa, SCL_STATE, FTAG); + spa_config_exit(spa, SCL_STATE, mmp_tag); return; }