Skip to content

Commit

Permalink
Add missed thread_exit() to vdev_{autotrim,rebuild}_thread
Browse files Browse the repository at this point in the history
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 openzfs#10668
  • Loading branch information
mattmacy authored and RageLtMan committed May 31, 2021
1 parent 201c34f commit 23ac5c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions module/zfs/vdev_rebuild.c
Original file line number Diff line number Diff line change
Expand Up @@ -911,6 +911,8 @@ vdev_rebuild_thread(void *arg)
spa_config_exit(spa, SCL_CONFIG, FTAG);

cv_broadcast(&vd->vdev_rebuild_cv);

thread_exit();
}

/*
Expand Down
2 changes: 2 additions & 0 deletions module/zfs/vdev_trim.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

/*
Expand Down

0 comments on commit 23ac5c5

Please sign in to comment.