diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2012-02-25 17:47:21 -0800 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2012-02-25 17:47:21 -0800 |
commit | 6aeaa48b0dd3a4261804be1cccaea46d82be3fcb (patch) | |
tree | 5ab457a296d0f2c6f4fd79d2c2d0211aa7918bde /drivers/infiniband | |
parent | 6b21d18ed50c7d145220b0724ea7f2613abf0f95 (diff) | |
download | op-kernel-dev-6aeaa48b0dd3a4261804be1cccaea46d82be3fcb.zip op-kernel-dev-6aeaa48b0dd3a4261804be1cccaea46d82be3fcb.tar.gz |
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 e571e60..5358900 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, spin_lock_init(&cct->task_lock); INIT_LIST_HEAD(&cct->cq_list); init_waitqueue_head(&cct->wait_queue); - cct->task = kthread_create(comp_task, cct, "ehca_comp/%d", cpu); + cct->task = kthread_create_on_node(comp_task, cct, cpu_to_node(cpu), + "ehca_comp/%d", cpu); return cct->task; } |