]> git.ipfire.org Git - people/ms/linux.git/commit
IB/rdmavt: Allocate CQ memory on the correct node
authorMike Marciniszyn <mike.marciniszyn@intel.com>
Tue, 19 Dec 2017 03:57:06 +0000 (19:57 -0800)
committerDoug Ledford <dledford@redhat.com>
Fri, 5 Jan 2018 18:34:55 +0000 (13:34 -0500)
commitdb9a2c6f9b6196b889b98e961cb9a37617b11ccf
treee7fad70b30866a8a764e887ee746560ba425b0f8
parent9996b049f64125dbf05916e80a06546e92185f9f
IB/rdmavt: Allocate CQ memory on the correct node

CQ allocation does not ensure that completion queue entries
and the completion queue structure are allocated on the correct
numa node.

Fix by allocating the rvt_cq and kernel CQ entries on the device node,
leaving the user CQ entries on the default local node.  Also ensure
CQ resizes use the correct allocator when extending a CQ.

Reviewed-by: Sebastian Sanchez <sebastian.sanchez@intel.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/sw/rdmavt/cq.c