RDMA/rxe: Use acquire/release for memory ordering
authorBob Pearson <rpearsonhpe@gmail.com>
Thu, 10 Dec 2020 17:42:59 +0000 (11:42 -0600)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 11 Dec 2020 23:57:48 +0000 (19:57 -0400)
commitd21a1240f5169a07a230d72e0e6d3773b2a088b4
tree502df1bb60738b4a0198435ac0f6c4fb490c203c
parentd8cc403b70de61160aaafddd776ee53aa5aa77eb
RDMA/rxe: Use acquire/release for memory ordering

Change work and completion queues to use smp_load_acquire() and
smp_store_release() to synchronize between driver and users.  This commit
goes with a matching series of commits in the rxe user space provider.

Link: https://lore.kernel.org/r/20201210174258.5234-1-rpearson@hpe.com
Signed-off-by: Bob Pearson <rpearson@hpe.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/sw/rxe/rxe_cq.c
drivers/infiniband/sw/rxe/rxe_queue.h
drivers/infiniband/sw/rxe/rxe_verbs.c
include/uapi/rdma/rdma_user_rxe.h