workqueue: separate pool-attaching code out from create_worker()
authorLai Jiangshan <laijs@cn.fujitsu.com>
Tue, 20 May 2014 09:46:35 +0000 (17:46 +0800)
committerTejun Heo <tj@kernel.org>
Tue, 20 May 2014 14:59:32 +0000 (10:59 -0400)
commit4736cbf7a4b2a6bbb50a809a6933fb7eb29dc38f
tree0e362a58838340c4b172e090f89a120b8b80c5d2
parent92f9c5c40cc67ffcc5ac7f55fdbd6ae8afc7e0b4
workqueue: separate pool-attaching code out from create_worker()

Currently, the code to attach a new worker to its pool is embedded in
create_worker().  Separating this code out will make the codes clearer
and will allow rescuers to share the code path later.

tj: Description and comment updates.

Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/workqueue.c