From patchwork Fri Jul 29 07:15:31 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Dumazet X-Patchwork-Id: 1019152 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p6T7FevS012033 for ; Fri, 29 Jul 2011 07:15:40 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754590Ab1G2HPj (ORCPT ); Fri, 29 Jul 2011 03:15:39 -0400 Received: from mail-wy0-f174.google.com ([74.125.82.174]:49560 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754672Ab1G2HPi (ORCPT ); Fri, 29 Jul 2011 03:15:38 -0400 Received: by wyg8 with SMTP id 8so633121wyg.19 for ; Fri, 29 Jul 2011 00:15:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:from:to:cc:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; bh=wqCyPmkmKODG/C6fcA1Edghs36JQ2jFRR1M7/jI4Lo0=; b=NJ9g6jJ8iPFO8S9V8jJZohtvQOT0bo5xdRN71ezbv+G3opoTz+T1CjgTHQtFVkuajb duB7qsROW4r07cSU116OGMVq4LxiFz2OLjYr9fCFcEiVNiclAfswXIm3EoASCGpIbVFp IwRKaASb8JU4gpqFokhEBVeJbZIf1hq9cr3f8= Received: by 10.227.57.209 with SMTP id d17mr1268116wbh.94.1311923737267; Fri, 29 Jul 2011 00:15:37 -0700 (PDT) Received: from [10.150.51.211] (gw0.net.jmsp.net [212.23.165.14]) by mx.google.com with ESMTPS id g48sm1206151wee.13.2011.07.29.00.15.34 (version=SSLv3 cipher=OTHER); Fri, 29 Jul 2011 00:15:35 -0700 (PDT) Subject: [PATCH] IB/ehca: use kthread_create_on_node From: Eric Dumazet To: Hoang-Nam Nguyen Cc: Christoph Raisch , Roland Dreier , Sean Hefty , linux-rdma@vger.kernel.org, linux-kernel Date: Fri, 29 Jul 2011 09:15:31 +0200 Message-ID: <1311923731.7845.25.camel@edumazet-laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Fri, 29 Jul 2011 07:15:41 +0000 (UTC) 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 CC: Hoang-Nam Nguyen CC: Christoph Raisch CC: Roland Dreier CC: Sean Hefty --- drivers/infiniband/hw/ehca/ehca_irq.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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; }