From: Lai Jiangshan Date: Sat, 26 Jul 2014 04:03:59 +0000 (+0800) Subject: kthread_work: wake up worker only when the worker is idle X-Git-Tag: omap-for-v3.17/fixes-against-rc2~192^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed1403ec2bd463050e481cd29be40c504021676c;p=pandora-kernel.git 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 Signed-off-by: Tejun Heo --- Reading git-diff-tree failed