diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2012-02-02 08:03:22 -0500 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-02-19 09:09:01 -0500 |
commit | 93713f3bf1d74c57ff851d17de54bb273d94210c (patch) | |
tree | 99ce2b0207e67ee0ea31485f0e9a3712e9c1b313 /drivers/scsi/bnx2i | |
parent | 1ec90174bdb4d8798299aebdcc078c3ac7e2e2c4 (diff) |
[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: Eric Dumazet <eric.dumazet@gmail.com>
Acked-by: Eddie Wai <eddie.wai@broadcom.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/bnx2i')
-rw-r--r-- | drivers/scsi/bnx2i/bnx2i_init.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/scsi/bnx2i/bnx2i_init.c b/drivers/scsi/bnx2i/bnx2i_init.c index 1a947f1b9729..62c8c0a02a7c 100644 --- a/drivers/scsi/bnx2i/bnx2i_init.c +++ b/drivers/scsi/bnx2i/bnx2i_init.c | |||
@@ -393,8 +393,9 @@ static void bnx2i_percpu_thread_create(unsigned int cpu) | |||
393 | 393 | ||
394 | p = &per_cpu(bnx2i_percpu, cpu); | 394 | p = &per_cpu(bnx2i_percpu, cpu); |
395 | 395 | ||
396 | thread = kthread_create(bnx2i_percpu_io_thread, (void *)p, | 396 | thread = kthread_create_on_node(bnx2i_percpu_io_thread, (void *)p, |
397 | "bnx2i_thread/%d", cpu); | 397 | cpu_to_node(cpu), |
398 | "bnx2i_thread/%d", cpu); | ||
398 | /* bind thread to the cpu */ | 399 | /* bind thread to the cpu */ |
399 | if (likely(!IS_ERR(thread))) { | 400 | if (likely(!IS_ERR(thread))) { |
400 | kthread_bind(thread, cpu); | 401 | kthread_bind(thread, cpu); |