diff options
author | Jorgen Lundman <[email protected]> | 2020-05-15 07:58:09 +0900 |
---|---|---|
committer | GitHub <[email protected]> | 2020-05-14 15:58:09 -0700 |
commit | eeb8fae9c7dc9a116f061ee8b266f0a51fd6c8ad (patch) | |
tree | d5d9e1e4c617a75150bf76a0e3180ce0fcecde11 /module | |
parent | 8b240f14f93822129ab9fb0674fc27f6353b0a2d (diff) |
Upstream: add missing thread_exit()
Undo FreeBSD wrapper for thread_create() added to call thread_exit.
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Ryan Moeller <[email protected]>
Signed-off-by: Jorgen Lundman <[email protected]>
Closes #10314
Diffstat (limited to 'module')
-rw-r--r-- | module/zfs/dmu_send.c | 2 | ||||
-rw-r--r-- | module/zfs/vdev_initialize.c | 2 | ||||
-rw-r--r-- | module/zfs/vdev_removal.c | 2 | ||||
-rw-r--r-- | module/zfs/vdev_trim.c | 2 |
4 files changed, 8 insertions, 0 deletions
diff --git a/module/zfs/dmu_send.c b/module/zfs/dmu_send.c index 9069f7e7d..a5df78edd 100644 --- a/module/zfs/dmu_send.c +++ b/module/zfs/dmu_send.c @@ -1319,6 +1319,8 @@ redact_list_thread(void *arg) record = range_alloc(DATA, 0, 0, 0, B_TRUE); bqueue_enqueue_flush(&rlt_arg->q, record, sizeof (*record)); spl_fstrans_unmark(cookie); + + thread_exit(); } /* diff --git a/module/zfs/vdev_initialize.c b/module/zfs/vdev_initialize.c index 5899af9fc..0d45d9958 100644 --- a/module/zfs/vdev_initialize.c +++ b/module/zfs/vdev_initialize.c @@ -558,6 +558,8 @@ vdev_initialize_thread(void *arg) vd->vdev_initialize_thread = NULL; cv_broadcast(&vd->vdev_initialize_cv); mutex_exit(&vd->vdev_initialize_lock); + + thread_exit(); } /* diff --git a/module/zfs/vdev_removal.c b/module/zfs/vdev_removal.c index dee46f4b3..3f4f9091f 100644 --- a/module/zfs/vdev_removal.c +++ b/module/zfs/vdev_removal.c @@ -1595,6 +1595,8 @@ spa_vdev_remove_thread(void *arg) ASSERT0(range_tree_space(svr->svr_allocd_segs)); vdev_remove_complete(spa); } + + thread_exit(); } void diff --git a/module/zfs/vdev_trim.c b/module/zfs/vdev_trim.c index 137ba83df..b0cd40f68 100644 --- a/module/zfs/vdev_trim.c +++ b/module/zfs/vdev_trim.c @@ -896,6 +896,8 @@ vdev_trim_thread(void *arg) vd->vdev_trim_thread = NULL; cv_broadcast(&vd->vdev_trim_cv); mutex_exit(&vd->vdev_trim_lock); + + thread_exit(); } /* |