aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/hfi1/chip.h
diff options
context:
space:
mode:
authorMichael J. Ruhl <michael.j.ruhl@intel.com>2017-05-04 05:14:57 -0700
committerDoug Ledford <dledford@redhat.com>2017-05-04 19:31:46 -0400
commit5fbded483c699823a7cca001a5c27ddc4d73370f (patch)
tree283fd944cdb169bf6a7c59eb1023fe5c1de27c2b /drivers/infiniband/hw/hfi1/chip.h
parentIB/hfi1: Remove atomic operations for SDMA_REQ_HAVE_AHG bit (diff)
downloadlinux-dev-5fbded483c699823a7cca001a5c27ddc4d73370f.tar.xz
linux-dev-5fbded483c699823a7cca001a5c27ddc4d73370f.zip
IB/hfi1: Search shared contexts on the opened device, not all devices
The search for available shared contexts walks each registered hfi1 device. This search is too broad because other devices may not be on the same fabric, and using its contexts could cause unexpected behavior. Removed walking the list of devices, limiting the search to the opened device. With the device walk removed, the hfi1_devdata (dd) is not available. Added it to the hfi1_filedata for reference. With this change, hfi1_count_units() was rendered obsolete and was removed. Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com> Signed-off-by: Michael J. Ruhl <michael.j.ruhl@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/hfi1/chip.h')
0 files changed, 0 insertions, 0 deletions