diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2012-02-25 20:47:21 -0500 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2012-02-25 20:47:21 -0500 |
commit | 6aeaa48b0dd3a4261804be1cccaea46d82be3fcb (patch) | |
tree | 5ab457a296d0f2c6f4fd79d2c2d0211aa7918bde /drivers/infiniband | |
parent | 6b21d18ed50c7d145220b0724ea7f2613abf0f95 (diff) |
IB/ehca: Use kthread_create_on_node()
Since create_comp_task() 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>
Acked-by: Hoang-Nam Nguyen <hnguyen@de.ibm.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/hw/ehca/ehca_irq.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/ehca/ehca_irq.c b/drivers/infiniband/hw/ehca/ehca_irq.c index e571e60ecb88..53589000fd07 100644 --- a/drivers/infiniband/hw/ehca/ehca_irq.c +++ b/drivers/infiniband/hw/ehca/ehca_irq.c | |||
@@ -786,7 +786,8 @@ static struct task_struct *create_comp_task(struct ehca_comp_pool *pool, | |||
786 | spin_lock_init(&cct->task_lock); | 786 | spin_lock_init(&cct->task_lock); |
787 | INIT_LIST_HEAD(&cct->cq_list); | 787 | INIT_LIST_HEAD(&cct->cq_list); |
788 | init_waitqueue_head(&cct->wait_queue); | 788 | init_waitqueue_head(&cct->wait_queue); |
789 | cct->task = kthread_create(comp_task, cct, "ehca_comp/%d", cpu); | 789 | cct->task = kthread_create_on_node(comp_task, cct, cpu_to_node(cpu), |
790 | "ehca_comp/%d", cpu); | ||
790 | 791 | ||
791 | return cct->task; | 792 | return cct->task; |
792 | } | 793 | } |