]> git.proxmox.com Git - mirror_zfs.git/commitdiff
OpenZFS 7659 - Missing thread_exit() in dmu_send.c
authorGeorge Melikov <mail@gmelikov.ru>
Wed, 18 Jan 2017 23:10:35 +0000 (02:10 +0300)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 18 Jan 2017 23:10:35 +0000 (15:10 -0800)
Two threads send_traverse_thread() and receive_writer_thread() should
end with thread_exit();

Mostly a cosmetic issue under IllumOS.

Authored by: Jorgen Lundman <lundman@lundman.net>
Reviewed by: Paul Dagnelie <pcd@delphix.com>
Reviewed by: Matt Ahrens <mahrens@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Ported-by: George Melikov <mail@gmelikov.ru>
OpenZFS-issue: https://www.illumos.org/issues/7659
OpenZFS-commit: https://github.com/openzfs/openzfs/commit/a569268
Closes #5603

module/zfs/dmu_send.c

index d66a9dca45d8cd2ab0e1fbd6a9021cef33652e43..d73993428e8134896590c0e0c608d6fb0d026e05 100644 (file)
@@ -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