aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/sw/rxe/rxe_comp.c
diff options
context:
space:
mode:
authorBob Pearson <rpearsonhpe@gmail.com>2021-05-27 14:47:47 -0500
committerJason Gunthorpe <jgg@nvidia.com>2021-06-03 15:53:01 -0300
commit0a67c46d2e9926c8214ed87e57fe51f044203612 (patch)
treeb74214cfe00d3e3636698412787d94c4669e2566 /drivers/infiniband/sw/rxe/rxe_comp.c
parentRDMA/rxe: Add a type flag to rxe_queue structs (diff)
downloadlinux-dev-0a67c46d2e9926c8214ed87e57fe51f044203612.tar.xz
linux-dev-0a67c46d2e9926c8214ed87e57fe51f044203612.zip
RDMA/rxe: Protect user space index loads/stores
Modify the queue APIs to protect all user space index loads with smp_load_acquire() and all user space index stores with smp_store_release(). Base this on the types of the queues which can be one of ..KERNEL, ..FROM_USER, ..TO_USER. Kernel space indices are protected by locks which also provide memory barriers. Link: https://lore.kernel.org/r/20210527194748.662636-3-rpearsonhpe@gmail.com Signed-off-by: Bob Pearson <rpearsonhpe@gmail.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/infiniband/sw/rxe/rxe_comp.c')
0 files changed, 0 insertions, 0 deletions