svn commit: r316899 - vendor-sys/illumos/dist/uts/common/fs/zfs

Andriy Gapon avg at FreeBSD.org
Fri Apr 14 18:11:55 UTC 2017


Author: avg
Date: Fri Apr 14 18:11:53 2017
New Revision: 316899
URL: https://svnweb.freebsd.org/changeset/base/316899

Log:
  7659 Missing thread_exit() in dmu_send.c
  
  illumos/illumos-gate at 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 <pcd at delphix.com>
  Reviewed by: Matt Ahrens <mahrens at delphix.com>
  Approved by: Richard Lowe <richlowe at richlowe.net>
  Author: Jorgen Lundman <lundman at lundman.net>

Modified:
  vendor-sys/illumos/dist/uts/common/fs/zfs/dmu_send.c

Modified: vendor-sys/illumos/dist/uts/common/fs/zfs/dmu_send.c
==============================================================================
--- vendor-sys/illumos/dist/uts/common/fs/zfs/dmu_send.c	Fri Apr 14 18:11:16 2017	(r316898)
+++ vendor-sys/illumos/dist/uts/common/fs/zfs/dmu_send.c	Fri Apr 14 18:11:53 2017	(r316899)
@@ -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


More information about the svn-src-all mailing list