aboutsummaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorMatthew Macy <[email protected]>2020-08-05 10:17:07 -0700
committerGitHub <[email protected]>2020-08-05 10:17:07 -0700
commit22dcf89181bdb178173ebc73c1345199acc22860 (patch)
treeaa08f1c03ef7774e868bc6567742baee2910e0f1 /module
parent309d20882fbc3c3a870a6c7c58ba95503c12b254 (diff)
Add missed thread_exit() to vdev_{autotrim,rebuild}_thread
Reviewed-by: Jorgen Lundman <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Co-authored-by: Ryan Moeller <[email protected]> Signed-off-by: Matt Macy <[email protected]> Closes #10668
Diffstat (limited to 'module')
-rw-r--r--module/zfs/vdev_rebuild.c2
-rw-r--r--module/zfs/vdev_trim.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/module/zfs/vdev_rebuild.c b/module/zfs/vdev_rebuild.c
index bf1079fd7..85ed8afe1 100644
--- a/module/zfs/vdev_rebuild.c
+++ b/module/zfs/vdev_rebuild.c
@@ -911,6 +911,8 @@ vdev_rebuild_thread(void *arg)
spa_config_exit(spa, SCL_CONFIG, FTAG);
cv_broadcast(&vd->vdev_rebuild_cv);
+
+ thread_exit();
}
/*
diff --git a/module/zfs/vdev_trim.c b/module/zfs/vdev_trim.c
index a655e2fd2..3f8c34806 100644
--- a/module/zfs/vdev_trim.c
+++ b/module/zfs/vdev_trim.c
@@ -1411,6 +1411,8 @@ vdev_autotrim_thread(void *arg)
vd->vdev_autotrim_thread = NULL;
cv_broadcast(&vd->vdev_autotrim_cv);
mutex_exit(&vd->vdev_autotrim_lock);
+
+ thread_exit();
}
/*