RDMA/rxe: Disallow MR dereg and invalidate when bound
authorBob Pearson <rpearsonhpe@gmail.com>
Tue, 8 Jun 2021 04:25:53 +0000 (23:25 -0500)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 16 Jun 2021 23:51:19 +0000 (20:51 -0300)
commit570d2b99d00d9e023328c0a0b8000ab485113384
treeee624e54f747317849c9d3ef97186ebdfdff91b9
parentcdd0b85675aecc77eba8c38d55070a014a49ab98
RDMA/rxe: Disallow MR dereg and invalidate when bound

Check that an MR has no bound MWs before allowing a dereg or invalidate
operation.

Link: https://lore.kernel.org/r/20210608042552.33275-11-rpearsonhpe@gmail.com
Signed-off-by: Bob Pearson <rpearsonhpe@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/sw/rxe/rxe_loc.h
drivers/infiniband/sw/rxe/rxe_mr.c
drivers/infiniband/sw/rxe/rxe_verbs.c