]> granicus.if.org Git - zfs/blobdiff - module/spl/spl-thread.c
Add Thread Specific Data (TSD) Implementation
[zfs] / module / spl / spl-thread.c
index 5de12ac3315d3a978751622e9433feebbe829fad..b1aa8119bfcc7a8ffb53a2cf9e76b76ede46160d 100644 (file)
@@ -26,6 +26,7 @@
 
 #include <sys/thread.h>
 #include <sys/kmem.h>
+#include <sys/tsd.h>
 #include <spl-debug.h>
 
 #ifdef SS_DEBUG_SUBSYS
@@ -74,6 +75,7 @@ __thread_exit(void)
 {
        SENTRY;
        SEXIT;
+       tsd_exit();
        complete_and_exit(NULL, 0);
        /* Unreachable */
 }