aboutsummaryrefslogtreecommitdiffstats
path: root/module/zfs/zfs_ioctl.c
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2010-12-17 15:26:17 -0800
committerBrian Behlendorf <[email protected]>2011-02-10 09:25:38 -0800
commit3fc050aaf2bc2e11844268ae0c091e6eb56108e5 (patch)
treecc15bbeb04ed3c202cb2f4dd974d8b383ba3837a /module/zfs/zfs_ioctl.c
parent8299a1f41eb4761cd25ea821830295a6f32be581 (diff)
Init/destroy tsd
Add missing tsd_destroy() call for rrw_tsd_key to avoid a leak.
Diffstat (limited to 'module/zfs/zfs_ioctl.c')
-rw-r--r--module/zfs/zfs_ioctl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/module/zfs/zfs_ioctl.c b/module/zfs/zfs_ioctl.c
index 17f3ff60b..6a7623cae 100644
--- a/module/zfs/zfs_ioctl.c
+++ b/module/zfs/zfs_ioctl.c
@@ -5196,10 +5196,8 @@ zfs_detach(void)
list_destroy(&zfsdev_state_list);
}
-#ifdef HAVE_ZPL
uint_t zfs_fsyncer_key;
extern uint_t rrw_tsd_key;
-#endif
#ifdef DEBUG
#define ZFS_DEBUG_STR " (DEBUG mode)"
@@ -5262,6 +5260,7 @@ _fini(void)
mutex_destroy(&zfs_share_lock);
#endif /* HAVE_SHARE */
tsd_destroy(&zfs_fsyncer_key);
+ tsd_destroy(&rrw_tsd_key);
printk(KERN_NOTICE "ZFS: Unloaded ZFS Filesystem v%s%s\n",
ZFS_META_VERSION, ZFS_DEBUG_STR);