]> granicus.if.org Git - zfs/commitdiff
Use proper tag for spa config refcounts in mmp_write_uberblock()
authorTim Chase <tim@chase2k.com>
Fri, 25 Jan 2019 17:50:06 +0000 (11:50 -0600)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 25 Jan 2019 17:50:06 +0000 (09:50 -0800)
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

module/zfs/mmp.c

index 6fd5d3e9a4f32aa0f590f4a0a443b38bba1418c3..746ee0f77fb44feb62ed9683189472a0cd3eb829 100644 (file)
@@ -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;
        }