commit | f7537df5206929c6a6f878da7c8ecd4143793376 | [log] [tgz] |
---|---|---|
author | Lai Jiangshan <laijs@cn.fujitsu.com> | Tue Jul 15 17:24:15 2014 +0800 |
committer | Tejun Heo <tj@kernel.org> | Tue Jul 15 11:11:20 2014 -0400 |
tree | c8e2faea1bf12a67da76598694ce560f57fb66e1 | |
parent | 9c34a7042e6fe79b900bd44db03dde8a4ecdf6f6 [diff] |
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>