RDMA/rxe: Only allow invalidate for appropriate MRs
authorBob Pearson <rpearsonhpe@gmail.com>
Tue, 14 Sep 2021 16:42:07 +0000 (11:42 -0500)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 24 Sep 2021 13:15:00 +0000 (10:15 -0300)
commit450f4f6aa1a369cc3ffadc1c7e27dfab3e90199f
treeeed60ffb1fa496a82c83da4313d88289eae58a7c
parent647bf13ce944f20f7402f281578423a952274e4a
RDMA/rxe: Only allow invalidate for appropriate MRs

Local and remote invalidate operations are not allowed by IBA for MRs
created by (re)register memory verbs. This patch checks the MR type in
rxe_invalidate_mr().

Link: https://lore.kernel.org/r/20210914164206.19768-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