summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJorgen Lundman <lundman@lundman.net>2016-12-12 16:05:12 -0800
committerMatthew Ahrens <mahrens@delphix.com>2016-12-20 12:46:11 -0800
commitf2c1e9bc48e4e20e8e9bd56203a75ff2e219b345 (patch)
tree838b4f2241969aca2d417d14d0815f6bdcd9b486
parent668487358738f1513a74ebbb1b8cda03947984c1 (diff)
downloadillumos-joyent-f2c1e9bc48e4e20e8e9bd56203a75ff2e219b345.tar.gz
7659 Missing thread_exit() in dmu_send.c
Reviewed by: Paul Dagnelie <pcd@delphix.com> Reviewed by: Matt Ahrens <mahrens@delphix.com> Approved by: Richard Lowe <richlowe@richlowe.net>
-rw-r--r--usr/src/uts/common/fs/zfs/dmu_send.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/src/uts/common/fs/zfs/dmu_send.c b/usr/src/uts/common/fs/zfs/dmu_send.c
index 01a4514a33..e0abf7dbac 100644
--- a/usr/src/uts/common/fs/zfs/dmu_send.c
+++ b/usr/src/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