From 24420128550abfc46361a13e3310bdb010da7e73 Mon Sep 17 00:00:00 2001 From: Matt Macy Date: Mon, 3 Aug 2020 08:27:36 -0700 Subject: [PATCH 1/2] Add missed thread_exit() to vdev_autotrim_thread Signed-off-by: Matt Macy --- module/zfs/vdev_trim.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/zfs/vdev_trim.c b/module/zfs/vdev_trim.c index a655e2fd2af4..3f8c34806020 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(); } /* From 32c3b8a5c974f55721dd5d8e8b3561e4cea86ef8 Mon Sep 17 00:00:00 2001 From: Ryan Moeller Date: Tue, 4 Aug 2020 09:56:58 -0400 Subject: [PATCH 2/2] Add missed thread_exit() to vdev_rebuild_thread Signed-off-by: Ryan Moeller --- module/zfs/vdev_rebuild.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/zfs/vdev_rebuild.c b/module/zfs/vdev_rebuild.c index bf1079fd7af0..85ed8afe1cf4 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(); } /*