summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/hfi1/common.h
diff options
context:
space:
mode:
authorMichael J. Ruhl <michael.j.ruhl@intel.com>2017-08-04 22:52:38 +0200
committerDoug Ledford <dledford@redhat.com>2017-08-22 20:22:36 +0200
commitf2a3bc00a03c2cc9caa40c8867de973fd4e48c6a (patch)
tree509797e5304e6d1e3a5165036582b5e0a6ae2a28 /drivers/infiniband/hw/hfi1/common.h
parentIB/hfi1: Use host_link_state to read state when DC is shut down (diff)
downloadlinux-f2a3bc00a03c2cc9caa40c8867de973fd4e48c6a.tar.xz
linux-f2a3bc00a03c2cc9caa40c8867de973fd4e48c6a.zip
IB/hfi1: Protect context array set/clear with spinlock
The rcd array can be accessed from user context or during interrupts. Protecting this with a mutex isn't a good idea because the mutex should not be used from an IRQ. Protect the allocation and freeing of rcd array elements with a spinlock. Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com> Reviewed-by: Sebastian Sanchez <sebastian.sanchez@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/common.h')
0 files changed, 0 insertions, 0 deletions