From 34a6b4284495b979c923e056b23d87fd6c20f380 Mon Sep 17 00:00:00 2001 From: George Melikov Date: Thu, 19 Jan 2017 02:10:35 +0300 Subject: [PATCH] OpenZFS 7659 - Missing thread_exit() in dmu_send.c Two threads send_traverse_thread() and receive_writer_thread() should end with thread_exit(); Mostly a cosmetic issue under IllumOS. Authored by: Jorgen Lundman Reviewed by: Paul Dagnelie Reviewed by: Matt Ahrens Reviewed-by: Brian Behlendorf Ported-by: George Melikov OpenZFS-issue: https://www.illumos.org/issues/7659 OpenZFS-commit: https://github.com/openzfs/openzfs/commit/a569268 Closes #5603 --- module/zfs/dmu_send.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/zfs/dmu_send.c b/module/zfs/dmu_send.c index d66a9dca4..d73993428 100644 --- a/module/zfs/dmu_send.c +++ b/module/zfs/dmu_send.c @@ -613,6 +613,7 @@ send_traverse_thread(void *arg) data->eos_marker = B_TRUE; bqueue_enqueue(&st_arg->q, data, 1); spl_fstrans_unmark(cookie); + thread_exit(); } /* @@ -2874,6 +2875,7 @@ receive_writer_thread(void *arg) cv_signal(&rwa->cv); mutex_exit(&rwa->mutex); spl_fstrans_unmark(cookie); + thread_exit(); } static int -- 2.40.0