[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1427336275-32066-3-git-send-email-guz.fnst@cn.fujitsu.com>
Date: Thu, 26 Mar 2015 10:17:55 +0800
From: Gu Zheng <guz.fnst@...fujitsu.com>
To: <linux-kernel@...r.kernel.org>
CC: <tj@...nel.org>, <laijs@...fujitsu.com>,
<isimatu.yasuaki@...fujitsu.com>, <kamezawa.hiroyu@...fujitsu.com>,
<tangchen@...fujitsu.com>, <guz.fnst@...fujitsu.com>,
<izumi.taku@...fujitsu.com>
Subject: [PATCH 2/2] workqueue: update per cpu workqueue's numa affinity when cpu preparing online
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@...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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists