Don't forget to destroy the mutex we created to the zfsvfs transient object,

otherwise if we load and unload the module the lockdebug code will blow chunks.
This commit is contained in:
christos 2013-09-23 19:42:42 +00:00
parent 3afd1f0a82
commit 54639fcdc3

View File

@ -1618,6 +1618,7 @@ zfs_create_fs(objset_t *os, cred_t *cr, nvlist_t *zplprops, dmu_tx_t *tx)
ASSERT(error == 0);
mutex_destroy(&zfsvfs.z_znodes_lock);
for (i = 0; i != ZFS_OBJ_MTX_SZ; i++)
mutex_destroy(&zfsvfs.z_hold_mtx[i]);
}