Init/destroy tsd
Add missing tsd_destroy() call for rrw_tsd_key to avoid a leak.
This commit is contained in:
parent
8299a1f41e
commit
3fc050aaf2
|
@ -5196,10 +5196,8 @@ zfs_detach(void)
|
||||||
list_destroy(&zfsdev_state_list);
|
list_destroy(&zfsdev_state_list);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_ZPL
|
|
||||||
uint_t zfs_fsyncer_key;
|
uint_t zfs_fsyncer_key;
|
||||||
extern uint_t rrw_tsd_key;
|
extern uint_t rrw_tsd_key;
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
#define ZFS_DEBUG_STR " (DEBUG mode)"
|
#define ZFS_DEBUG_STR " (DEBUG mode)"
|
||||||
|
@ -5262,6 +5260,7 @@ _fini(void)
|
||||||
mutex_destroy(&zfs_share_lock);
|
mutex_destroy(&zfs_share_lock);
|
||||||
#endif /* HAVE_SHARE */
|
#endif /* HAVE_SHARE */
|
||||||
tsd_destroy(&zfs_fsyncer_key);
|
tsd_destroy(&zfs_fsyncer_key);
|
||||||
|
tsd_destroy(&rrw_tsd_key);
|
||||||
|
|
||||||
printk(KERN_NOTICE "ZFS: Unloaded ZFS Filesystem v%s%s\n",
|
printk(KERN_NOTICE "ZFS: Unloaded ZFS Filesystem v%s%s\n",
|
||||||
ZFS_META_VERSION, ZFS_DEBUG_STR);
|
ZFS_META_VERSION, ZFS_DEBUG_STR);
|
||||||
|
|
Loading…
Reference in New Issue