From 22dcf89181bdb178173ebc73c1345199acc22860 Mon Sep 17 00:00:00 2001 From: Matthew Macy Date: Wed, 5 Aug 2020 10:17:07 -0700 Subject: [PATCH] Add missed thread_exit() to vdev_{autotrim,rebuild}_thread Reviewed-by: Jorgen Lundman Reviewed-by: Brian Behlendorf Co-authored-by: Ryan Moeller Signed-off-by: Matt Macy Closes #10668 --- module/zfs/vdev_rebuild.c | 2 ++ module/zfs/vdev_trim.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/module/zfs/vdev_rebuild.c b/module/zfs/vdev_rebuild.c index bf1079fd7a..85ed8afe1c 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 a655e2fd2a..3f8c348060 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(); } /*