Skip to content

Commit

Permalink
[SCSI] bnx2fc: use kthread_create_on_node
Browse files Browse the repository at this point in the history
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: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Bhanu Prakash Gollapudi <bprakash@broadcom.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
  • Loading branch information
Eric Dumazet authored and James Bottomley committed Jul 20, 2012
1 parent 6072609 commit 6961427
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/scsi/bnx2fc/bnx2fc_fcoe.c
Original file line number Diff line number Diff line change
Expand Up @@ -2290,9 +2290,9 @@ static void bnx2fc_percpu_thread_create(unsigned int cpu)

p = &per_cpu(bnx2fc_percpu, cpu);

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

0 comments on commit 6961427

Please sign in to comment.