Module Name: src
Committed By: christos
Date: Mon Sep 23 19:42:42 UTC 2013
Modified Files:
src/external/cddl/osnet/dist/uts/common/fs/zfs: zfs_znode.c
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 \
src/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_znode.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_znode.c
diff -u src/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_znode.c:1.13 src/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_znode.c:1.14
--- src/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_znode.c:1.13 Mon Oct 15 19:08:19 2012
+++ src/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_znode.c Mon Sep 23 15:42:42 2013
@@ -1618,6 +1618,7 @@ zfs_create_fs(objset_t *os, cred_t *cr,
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]);
}