|
@@ -1366,8 +1366,10 @@ static struct worker *create_worker(struct global_cwq *gcwq, bool bind)
|
|
|
worker->id = id;
|
|
|
|
|
|
if (!on_unbound_cpu)
|
|
|
- worker->task = kthread_create(worker_thread, worker,
|
|
|
- "kworker/%u:%d", gcwq->cpu, id);
|
|
|
+ worker->task = kthread_create_on_node(worker_thread,
|
|
|
+ worker,
|
|
|
+ cpu_to_node(gcwq->cpu),
|
|
|
+ "kworker/%u:%d", gcwq->cpu, id);
|
|
|
else
|
|
|
worker->task = kthread_create(worker_thread, worker,
|
|
|
"kworker/u:%d", id);
|