OSDN Git Service

workqueue: alloc struct worker on its local node
authorLai Jiangshan <laijs@cn.fujitsu.com>
Tue, 15 Jul 2014 09:24:15 +0000 (17:24 +0800)
committerTejun Heo <tj@kernel.org>
Tue, 15 Jul 2014 15:11:20 +0000 (11:11 -0400)
commitf7537df5206929c6a6f878da7c8ecd4143793376
treec8e2faea1bf12a67da76598694ce560f57fb66e1
parent9c34a7042e6fe79b900bd44db03dde8a4ecdf6f6
workqueue: alloc struct worker on its local node

When the create_worker() is called from non-manager, the struct worker
is allocated from the node of the caller which may be different from the
node of pool->node.

So we add a node ID argument for the alloc_worker() to ensure the
struct worker is allocated from the preferable node.

tj: @nid renamed to @node for consistency.

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