Skip to content

Commit

Permalink
[SCSI] bnx2i: use kthread_create_on_node()
Browse files Browse the repository at this point in the history
bnx2i_percpu_thread_create() create per cpu kthread, and should use
proper NUMA aware API.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Acked-by: Eddie Wai <eddie.wai@broadcom.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
  • Loading branch information
Eric Dumazet authored and James Bottomley committed Feb 19, 2012
1 parent 1ec9017 commit 93713f3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/scsi/bnx2i/bnx2i_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,9 @@ static void bnx2i_percpu_thread_create(unsigned int cpu)

p = &per_cpu(bnx2i_percpu, cpu);

thread = kthread_create(bnx2i_percpu_io_thread, (void *)p,
"bnx2i_thread/%d", cpu);
thread = kthread_create_on_node(bnx2i_percpu_io_thread, (void *)p,
cpu_to_node(cpu),
"bnx2i_thread/%d", cpu);
/* bind thread to the cpu */
if (likely(!IS_ERR(thread))) {
kthread_bind(thread, cpu);
Expand Down

0 comments on commit 93713f3

Please sign in to comment.