7659 Missing thread_exit() in dmu_send.c
illumos/illumos-gate@f2c1e9bc48
f2c1e9bc48
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@delphix.com>
Reviewed by: Matt Ahrens <mahrens@delphix.com>
Approved by: Richard Lowe <richlowe@richlowe.net>
Author: Jorgen Lundman <lundman@lundman.net>
This commit is contained in:
parent
c5c6a287f1
commit
2bb93dd84d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user