]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
IB/hfi1: Remove atomic operations for SDMA_REQ_HAVE_AHG bit
authorSebastian Sanchez <sebastian.sanchez@intel.com>
Thu, 4 May 2017 12:14:51 +0000 (05:14 -0700)
committerDoug Ledford <dledford@redhat.com>
Thu, 4 May 2017 23:31:46 +0000 (19:31 -0400)
commit780a4c16aaacba3746a20d9138a5b1f467035ffc
tree393d21531f2050a02b2950256dd97782868a5567
parent5042cddfd058a2db419ba7aaadc866e8dccca06c
IB/hfi1: Remove atomic operations for SDMA_REQ_HAVE_AHG bit

The AHG index is only accessed in the request call
from user space, so there's no need for atomic semantics.
Replace atomic operations for SDMA_REQ_HAVE_AHG bit
with a test of the AHG index.

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