Re: [PATCH] kthread_work: wake up worker only when the worker is idle

2014-07-28 Thread Tejun Heo
On Sat, Jul 26, 2014 at 12:03:59PM +0800, Lai Jiangshan wrote: > If the worker task is not idle, it may sleep on some conditions by the request > of the work. Our unfriendly wakeup in the insert_kthread_work() may confuse > the worker. > > Signed-off-by: Lai Jiangshan Applied to wq/for-3.17. T

[PATCH] kthread_work: wake up worker only when the worker is idle

2014-07-25 Thread Lai Jiangshan
If the worker task is not idle, it may sleep on some conditions by the request of the work. Our unfriendly wakeup in the insert_kthread_work() may confuse the worker. Signed-off-by: Lai Jiangshan --- kernel/kthread.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/kern