Take tsd_* functions out for now, we need it for the ZPL later
This commit is contained in:
parent
0ae94a5f86
commit
f1549b9636
|
@ -3159,12 +3159,12 @@ _init(void)
|
||||||
return (error);
|
return (error);
|
||||||
}
|
}
|
||||||
|
|
||||||
tsd_create(&zfs_fsyncer_key, NULL);
|
|
||||||
tsd_create(&rrw_tsd_key, NULL);
|
|
||||||
|
|
||||||
error = ldi_ident_from_mod(&modlinkage, &zfs_li);
|
error = ldi_ident_from_mod(&modlinkage, &zfs_li);
|
||||||
ASSERT(error == 0);
|
ASSERT(error == 0);
|
||||||
#ifdef HAVE_ZPL
|
#ifdef HAVE_ZPL
|
||||||
|
tsd_create(&zfs_fsyncer_key, NULL);
|
||||||
|
tsd_create(&rrw_tsd_key, NULL);
|
||||||
|
|
||||||
mutex_init(&zfs_share_lock, NULL, MUTEX_DEFAULT, NULL);
|
mutex_init(&zfs_share_lock, NULL, MUTEX_DEFAULT, NULL);
|
||||||
#endif /* HAVE_ZPL */
|
#endif /* HAVE_ZPL */
|
||||||
|
|
||||||
|
@ -3194,9 +3194,9 @@ _fini(void)
|
||||||
(void) ddi_modclose(sharefs_mod);
|
(void) ddi_modclose(sharefs_mod);
|
||||||
|
|
||||||
mutex_destroy(&zfs_share_lock);
|
mutex_destroy(&zfs_share_lock);
|
||||||
|
tsd_destroy(&zfs_fsyncer_key);
|
||||||
#endif /* HAVE_ZPL */
|
#endif /* HAVE_ZPL */
|
||||||
|
|
||||||
tsd_destroy(&zfs_fsyncer_key);
|
|
||||||
ldi_ident_release(zfs_li);
|
ldi_ident_release(zfs_li);
|
||||||
zfs_li = NULL;
|
zfs_li = NULL;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue