]> git.proxmox.com Git - mirror_zfs.git/commitdiff
Add missed thread_exit() to vdev_{autotrim,rebuild}_thread
authorMatthew Macy <mmacy@freebsd.org>
Wed, 5 Aug 2020 17:17:07 +0000 (10:17 -0700)
committerGitHub <noreply@github.com>
Wed, 5 Aug 2020 17:17:07 +0000 (10:17 -0700)
Reviewed-by: Jorgen Lundman <lundman@lundman.net>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Co-authored-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Matt Macy <mmacy@FreeBSD.org>
Closes #10668

module/zfs/vdev_rebuild.c
module/zfs/vdev_trim.c

index bf1079fd7af0a0eb47cebf7792e024444a9a8a03..85ed8afe1cf47eee6dd0478313be28c4a9638a77 100644 (file)
@@ -911,6 +911,8 @@ vdev_rebuild_thread(void *arg)
        spa_config_exit(spa, SCL_CONFIG, FTAG);
 
        cv_broadcast(&vd->vdev_rebuild_cv);
+
+       thread_exit();
 }
 
 /*
index a655e2fd2af4acc26f5b893e287d038ac9f2395e..3f8c3480602033a6caa5dc6ec7f85cc0cafd80d4 100644 (file)
@@ -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();
 }
 
 /*