diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2011-09-28 00:37:52 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2011-10-02 13:53:40 -0400 |
commit | 5c609ff937a91cf09b1f8d7612cd00bc046c27f7 (patch) | |
tree | 5f5620257b243c61b28c555c770445cad819eaca | |
parent | 05a2a17317b48eb16a167c8c2932ba7b3cdee89e (diff) |
[SCSI] fcoe: use kthread_create_on_node
Since fcoe_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: Yi Zou <yi.zou@intel.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
-rw-r--r-- | drivers/scsi/fcoe/fcoe.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/scsi/fcoe/fcoe.c b/drivers/scsi/fcoe/fcoe.c index c30fa27402d9..010432596eaf 100644 --- a/drivers/scsi/fcoe/fcoe.c +++ b/drivers/scsi/fcoe/fcoe.c | |||
@@ -1113,8 +1113,9 @@ static void fcoe_percpu_thread_create(unsigned int cpu) | |||
1113 | 1113 | ||
1114 | p = &per_cpu(fcoe_percpu, cpu); | 1114 | p = &per_cpu(fcoe_percpu, cpu); |
1115 | 1115 | ||
1116 | thread = kthread_create(fcoe_percpu_receive_thread, | 1116 | thread = kthread_create_on_node(fcoe_percpu_receive_thread, |
1117 | (void *)p, "fcoethread/%d", cpu); | 1117 | (void *)p, cpu_to_node(cpu), |
1118 | "fcoethread/%d", cpu); | ||
1118 | 1119 | ||
1119 | if (likely(!IS_ERR(thread))) { | 1120 | if (likely(!IS_ERR(thread))) { |
1120 | kthread_bind(thread, cpu); | 1121 | kthread_bind(thread, cpu); |