]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging/rdma/hfi1: Allocate send ctxt on device NUMA node
authorMitko Haralanov <mitko.haralanov@intel.com>
Wed, 3 Feb 2016 22:33:49 +0000 (14:33 -0800)
committerDoug Ledford <dledford@redhat.com>
Fri, 11 Mar 2016 01:37:52 +0000 (20:37 -0500)
Allocate the user mode send context memory on the numa node which the
device is attached to for better performance.

Reviewed-by: Dean Luick <dean.luick@intel.com>
Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Mitko Haralanov <mitko.haralanov@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/staging/rdma/hfi1/file_ops.c

index c9172a039242e028e537f5f23a6575768ddf5087..2de9032857d33725d92973431f65a78a49c41384 100644 (file)
@@ -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;