From: Mitko Haralanov Date: Wed, 3 Feb 2016 22:33:49 +0000 (-0800) Subject: staging/rdma/hfi1: Allocate send ctxt on device NUMA node X-Git-Tag: v4.6-rc1~47^2^3~153 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cc57236f5515cd343fa47e9664090b54bdb410a3;p=platform%2Fkernel%2Flinux-exynos.git staging/rdma/hfi1: Allocate send ctxt on device NUMA node Allocate the user mode send context memory on the numa node which the device is attached to for better performance. Reviewed-by: Dean Luick Reviewed-by: Mike Marciniszyn Reviewed-by: Ira Weiny Signed-off-by: Mitko Haralanov Signed-off-by: Doug Ledford --- diff --git a/drivers/staging/rdma/hfi1/file_ops.c b/drivers/staging/rdma/hfi1/file_ops.c index c9172a0..2de9032 100644 --- a/drivers/staging/rdma/hfi1/file_ops.c +++ b/drivers/staging/rdma/hfi1/file_ops.c @@ -1029,7 +1029,7 @@ static int allocate_ctxt(struct file *fp, struct hfi1_devdata *dd, * Allocate and enable a PIO send context. */ uctxt->sc = sc_alloc(dd, SC_USER, uctxt->rcvhdrqentsize, - uctxt->numa_id); + uctxt->dd->node); if (!uctxt->sc) return -ENOMEM;