projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ec9017
)
[SCSI] bnx2i: use kthread_create_on_node()
author
Eric Dumazet
<
[email protected]
>
Thu, 2 Feb 2012 13:03:22 +0000
(14:03 +0100)
committer
James Bottomley
<
[email protected]
>
Sun, 19 Feb 2012 14:09:01 +0000
(08:09 -0600)
bnx2i_percpu_thread_create() create per cpu kthread, and should use
proper NUMA aware API.
Signed-off-by: Eric Dumazet <
[email protected]
>
Acked-by: Eddie Wai <
[email protected]
>
Signed-off-by: James Bottomley <
[email protected]
>
drivers/scsi/bnx2i/bnx2i_init.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/bnx2i/bnx2i_init.c
b/drivers/scsi/bnx2i/bnx2i_init.c
index 1a947f1b9729a571e3a07c0f94bdd9fe6d2b23de..62c8c0a02a7cdc4b5cfcb2554a6d1fc4e2a99ae4 100644
(file)
--- 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)
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);