diff options
author | Lai Jiangshan <laijs@cn.fujitsu.com> | 2014-07-26 06:03:59 +0200 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2014-07-28 20:07:52 +0200 |
commit | ed1403ec2bd463050e481cd29be40c504021676c (patch) | |
tree | db9574ae09b6a593d8a3e239f532abf1dcfa7c3a /drivers/virt/Makefile | |
parent | workqueue: use nr_node_ids instead of wq_numa_tbl_len (diff) | |
download | linux-ed1403ec2bd463050e481cd29be40c504021676c.tar.xz linux-ed1403ec2bd463050e481cd29be40c504021676c.zip |
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>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions