提交 e55b6892 编写于 作者: E Evgeniy Polyakov 提交者: Greg Kroah-Hartman

Staging: DST: extend thread pool exit conditions.

Added thread pool exit condition into the thread_pool_del_worker(). If
called in parallel another thread can steal
Signed-off-by: NEvgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 3e5510ab
......@@ -115,7 +115,7 @@ void thread_pool_del_worker(struct thread_pool *p)
{
struct thread_pool_worker *w = NULL;
while (!w) {
while (!w && p->thread_num) {
wait_event(p->wait, !list_empty(&p->ready_list) || !p->thread_num);
dprintk("%s: locking list_empty: %d, thread_num: %d.\n",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册