From: Eric Dumazet Date: Wed, 28 Sep 2011 04:37:52 +0000 (-0700) Subject: [SCSI] fcoe: use kthread_create_on_node X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=5c609ff937a91cf09b1f8d7612cd00bc046c27f7;p=linux-beck.git [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 Signed-off-by: Yi Zou Signed-off-by: James Bottomley --- 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) p = &per_cpu(fcoe_percpu, cpu); - thread = kthread_create(fcoe_percpu_receive_thread, - (void *)p, "fcoethread/%d", cpu); + thread = kthread_create_on_node(fcoe_percpu_receive_thread, + (void *)p, cpu_to_node(cpu), + "fcoethread/%d", cpu); if (likely(!IS_ERR(thread))) { kthread_bind(thread, cpu);