Commit 69614270 authored by Eric Dumazet's avatar Eric Dumazet Committed by James Bottomley

[SCSI] bnx2fc: use kthread_create_on_node

Since bnx2fc_percpu_thread_create() creates percpu kthread, it makes
sense to use kthread_create_on_node() to get proper NUMA affinity for
kthread stack.
Signed-off-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: default avatarBhanu Prakash Gollapudi <bprakash@broadcom.com>
Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
parent 6072609d
...@@ -2290,8 +2290,8 @@ static void bnx2fc_percpu_thread_create(unsigned int cpu) ...@@ -2290,8 +2290,8 @@ static void bnx2fc_percpu_thread_create(unsigned int cpu)
p = &per_cpu(bnx2fc_percpu, cpu); p = &per_cpu(bnx2fc_percpu, cpu);
thread = kthread_create(bnx2fc_percpu_io_thread, thread = kthread_create_on_node(bnx2fc_percpu_io_thread,
(void *)p, (void *)p, cpu_to_node(cpu),
"bnx2fc_thread/%d", cpu); "bnx2fc_thread/%d", cpu);
/* bind thread to the cpu */ /* bind thread to the cpu */
if (likely(!IS_ERR(thread))) { if (likely(!IS_ERR(thread))) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment