aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/bnx2fc
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2012-06-04 19:15:42 -0400
committerJames Bottomley <JBottomley@Parallels.com>2012-07-20 03:58:14 -0400
commit69614270e19cc0ea1be6539f99b59b0dd0be142a (patch)
treec3663ef41a5c6d9a1569e13a70778df1058d5b5e /drivers/scsi/bnx2fc
parent6072609d9bb91ff54aee3ef29304bd5b4fc88aae (diff)
[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: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: Bhanu Prakash Gollapudi <bprakash@broadcom.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/bnx2fc')
-rw-r--r--drivers/scsi/bnx2fc/bnx2fc_fcoe.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c
index 49bd99e49c64..9eefa8be605f 100644
--- a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c
+++ b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c
@@ -2290,9 +2290,9 @@ static void bnx2fc_percpu_thread_create(unsigned int cpu)
2290 2290
2291 p = &per_cpu(bnx2fc_percpu, cpu); 2291 p = &per_cpu(bnx2fc_percpu, cpu);
2292 2292
2293 thread = kthread_create(bnx2fc_percpu_io_thread, 2293 thread = kthread_create_on_node(bnx2fc_percpu_io_thread,
2294 (void *)p, 2294 (void *)p, cpu_to_node(cpu),
2295 "bnx2fc_thread/%d", cpu); 2295 "bnx2fc_thread/%d", cpu);
2296 /* bind thread to the cpu */ 2296 /* bind thread to the cpu */
2297 if (likely(!IS_ERR(thread))) { 2297 if (likely(!IS_ERR(thread))) {
2298 kthread_bind(thread, cpu); 2298 kthread_bind(thread, cpu);