summaryrefslogtreecommitdiffstats
path: root/module/zfs/vdev_trim.c
diff options
context:
space:
mode:
Diffstat (limited to 'module/zfs/vdev_trim.c')
-rw-r--r--module/zfs/vdev_trim.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/module/zfs/vdev_trim.c b/module/zfs/vdev_trim.c
index 137ba83df..b0cd40f68 100644
--- a/module/zfs/vdev_trim.c
+++ b/module/zfs/vdev_trim.c
@@ -896,6 +896,8 @@ vdev_trim_thread(void *arg)
vd->vdev_trim_thread = NULL;
cv_broadcast(&vd->vdev_trim_cv);
mutex_exit(&vd->vdev_trim_lock);
+
+ thread_exit();
}
/*