Messages in this thread Patch in this message | | | From | Gu Zheng <> | Subject | [PATCH 2/2] workqueue: update per cpu workqueue's numa affinity when cpu preparing online | Date | Thu, 26 Mar 2015 10:17:55 +0800 |
| |
Update the per cpu workqueue's numa affinity when cpu preparing online to create the worker on the correct node.
Signed-off-by: Gu Zheng <guz.fnst@cn.fujitsu.com> --- kernel/workqueue.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/kernel/workqueue.c b/kernel/workqueue.c index 41ff75b..4c65953 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c @@ -4618,6 +4618,7 @@ static int workqueue_cpu_up_callback(struct notifier_block *nfb, switch (action & ~CPU_TASKS_FROZEN) { case CPU_UP_PREPARE: for_each_cpu_worker_pool(pool, cpu) { + pool->node = cpu_to_node(cpu); if (pool->nr_workers) continue; if (!create_worker(pool)) -- 1.7.7
| |