Commit 93713f3b authored by Eric Dumazet's avatar Eric Dumazet Committed by James Bottomley

[SCSI] bnx2i: use kthread_create_on_node()

bnx2i_percpu_thread_create() create per cpu kthread, and should use
proper NUMA aware API.
Signed-off-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
Acked-by: default avatarEddie Wai <eddie.wai@broadcom.com>
Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
parent 1ec90174
...@@ -393,7 +393,8 @@ static void bnx2i_percpu_thread_create(unsigned int cpu) ...@@ -393,7 +393,8 @@ static void bnx2i_percpu_thread_create(unsigned int cpu)
p = &per_cpu(bnx2i_percpu, cpu); p = &per_cpu(bnx2i_percpu, cpu);
thread = kthread_create(bnx2i_percpu_io_thread, (void *)p, thread = kthread_create_on_node(bnx2i_percpu_io_thread, (void *)p,
cpu_to_node(cpu),
"bnx2i_thread/%d", cpu); "bnx2i_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