commit | ed1403ec2bd463050e481cd29be40c504021676c | [log] [tgz] |
---|---|---|
author | Lai Jiangshan <laijs@cn.fujitsu.com> | Sat Jul 26 12:03:59 2014 +0800 |
committer | Tejun Heo <tj@kernel.org> | Mon Jul 28 14:07:52 2014 -0400 |
tree | db9574ae09b6a593d8a3e239f532abf1dcfa7c3a | |
parent | ddcb57e2ed0a4d0de5aef06735dd9df98894f818 [diff] |
kthread_work: wake up worker only when the worker is idle If the worker is already executing a work item when another is queued, we can safely skip wakeup without worrying about stalling queue thus avoiding waking up the busy worker spuriously. Spurious wakeups should be fine but still isn't nice and avoiding it is trivial here. tj: Updated description. Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com> Signed-off-by: Tejun Heo <tj@kernel.org>