From 2bb93dd84d3ed53802f074edcd813413bb3ba33f Mon Sep 17 00:00:00 2001 From: Andriy Gapon Date: Fri, 14 Apr 2017 18:11:53 +0000 Subject: [PATCH] 7659 Missing thread_exit() in dmu_send.c illumos/illumos-gate@f2c1e9bc48e4e20e8e9bd56203a75ff2e219b345 https://github.com/illumos/illumos-gate/commit/f2c1e9bc48e4e20e8e9bd56203a75ff2e219b345 https://www.illumos.org/issues/7659 Two threads send_traverse_thread() and receive_writer_thread() should end with thread_exit(); Mostly a cosmetic issue under IllumOS. https://github.com/openzfs/openzfs/pull/252 Reviewed by: Paul Dagnelie Reviewed by: Matt Ahrens Approved by: Richard Lowe Author: Jorgen Lundman --- uts/common/fs/zfs/dmu_send.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/uts/common/fs/zfs/dmu_send.c b/uts/common/fs/zfs/dmu_send.c index 01a4514a3316..e0abf7dbaca3 100644 --- a/uts/common/fs/zfs/dmu_send.c +++ b/uts/common/fs/zfs/dmu_send.c @@ -576,6 +576,7 @@ send_traverse_thread(void *arg) data = kmem_zalloc(sizeof (*data), KM_SLEEP); data->eos_marker = B_TRUE; bqueue_enqueue(&st_arg->q, data, 1); + thread_exit(); } /* @@ -2815,6 +2816,7 @@ receive_writer_thread(void *arg) rwa->done = B_TRUE; cv_signal(&rwa->cv); mutex_exit(&rwa->mutex); + thread_exit(); } static int