Skip to content
This repository has been archived by the owner on Nov 7, 2019. It is now read-only.

Commit

Permalink
7659 Missing thread_exit() in dmu_send.c
Browse files Browse the repository at this point in the history
Two threads send_traverse_thread() and receive_writer_thread() should
end with thread_exit();

Mostly a cosmetic issue under IllumOS.
  • Loading branch information
lundman committed Dec 10, 2016
1 parent d519093 commit ef24e0b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions usr/src/uts/common/fs/zfs/dmu_send.c
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,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();
}

/*
Expand Down Expand Up @@ -2708,6 +2709,7 @@ receive_writer_thread(void *arg)
rwa->done = B_TRUE;
cv_signal(&rwa->cv);
mutex_exit(&rwa->mutex);
thread_exit();
}

static int
Expand Down

0 comments on commit ef24e0b

Please sign in to comment.