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 <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Co-authored-by: Ryan Moeller <[email protected]>
Signed-off-by: Matt Macy <[email protected]>
Closes openzfs#10668
  • Loading branch information
mattmacy authored Aug 5, 2020
1 parent 309d208 commit 22dcf89
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 22dcf89

Please sign in to comment.