From 107dd2b1748bc4c15e5e5fa7342cfc4e61bce4ee Mon Sep 17 00:00:00 2001 From: Tim Chase Date: Fri, 25 Jan 2019 11:50:06 -0600 Subject: [PATCH] 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 --- module/zfs/mmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/zfs/mmp.c b/module/zfs/mmp.c index 6fd5d3e9a4..746ee0f77f 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; }