RDMA/rxe: Move mr cleanup code to rxe_mr_cleanup()
authorBob Pearson <rpearsonhpe@gmail.com>
Thu, 21 Apr 2022 01:40:38 +0000 (20:40 -0500)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 9 May 2022 12:03:45 +0000 (09:03 -0300)
commitcf40367961d8e8af084f4333e6554205c62c7946
tree73b15e0e37d902e74e6f55863c901dd3e1cb65a6
parented2b5dd0f895f80c30e28de63ce607c2f139318e
RDMA/rxe: Move mr cleanup code to rxe_mr_cleanup()

Move the code which tears down an mr to rxe_mr_cleanup to allow operations
holding a reference to the mr to complete.

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