diff options
author | Bob Pearson <rpearsonhpe@gmail.com> | 2021-05-27 14:47:47 -0500 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2021-06-03 15:53:01 -0300 |
commit | 0a67c46d2e9926c8214ed87e57fe51f044203612 (patch) | |
tree | b74214cfe00d3e3636698412787d94c4669e2566 /drivers/infiniband/sw/rxe/rxe_req.c | |
parent | 59daff49f25fbb3197c03c879e23a31ddd23d98f (diff) |
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_req.c')
0 files changed, 0 insertions, 0 deletions