summaryrefslogtreecommitdiffstats
path: root/kernel/delayacct.c
diff options
context:
space:
mode:
authorLai Jiangshan <laijs@cn.fujitsu.com>2014-07-22 07:03:02 +0200
committerTejun Heo <tj@kernel.org>2014-07-22 18:10:39 +0200
commit051e1850106687896d4c4eeaf6ae4d61c4862e85 (patch)
tree4c0777d0dd4cb9179b31944a40b7fb843335ef84 /kernel/delayacct.c
parentworkqueue: remove @wakeup from worker_set_flags() (diff)
downloadlinux-051e1850106687896d4c4eeaf6ae4d61c4862e85.tar.xz
linux-051e1850106687896d4c4eeaf6ae4d61c4862e85.zip
workqueue: unfold start_worker() into create_worker()
Simply unfold the code of start_worker() into create_worker() and remove the original start_worker() and create_and_start_worker(). The only trade-off is the introduced overhead that the pool->lock is released and regrabbed after the newly worker is started. The overhead is acceptible since the manager is slow path. And because this new locking behavior, the newly created worker may grab the lock earlier than the manager and go to process work items. In this case, the recheck need_to_create_worker() may be true as expected and the manager goes to restart which is the correct behavior. tj: Minor updates to description and comments. Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/delayacct.c')
0 files changed, 0 insertions, 0 deletions