]> git.proxmox.com Git - mirror_spl.git/commit
Make tsd_set(key, NULL) remove the tsd entry for current thread
authorChunwei Chen <tuxoko@gmail.com>
Wed, 1 Apr 2015 17:50:48 +0000 (01:50 +0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 24 Apr 2015 21:15:22 +0000 (14:15 -0700)
commit3d39d0afab44b217d51f7fbd97c3561d39e80f0c
tree4f4a68a26851f3cbac3d4ba72d59c31ae1536d60
parentd3c677bcd330423c72cd4d4100727e5c1e8c1f38
Make tsd_set(key, NULL) remove the tsd entry for current thread

To prevent leaking tsd entries, we make tsd_set(key, NULL) remove the tsd
entry for the current thread. This is alright since tsd_get() returns NULL
when the entry doesn't exist.

Signed-off-by: Chunwei Chen <tuxoko@gmail.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #443
module/spl/spl-tsd.c