summaryrefslogtreecommitdiffstats
path: root/module/spl/spl-thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'module/spl/spl-thread.c')
-rw-r--r--module/spl/spl-thread.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/module/spl/spl-thread.c b/module/spl/spl-thread.c
index 5de12ac33..b1aa8119b 100644
--- a/module/spl/spl-thread.c
+++ b/module/spl/spl-thread.c
@@ -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 */
}