Files
erofs-linux/include/rdma
Jason Gunthorpe badad6fad6 RDMA: During rereg_mr ensure that REREG_ACCESS is compatible
If IB_MR_REREG_ACCESS changes from RO to RW then the umem has to be
re-evaluated to ensure it is properly pinned as RW. Since the umem is
hidden inside each driver's mr struct add a ib_umem_check_rereg() function
that each driver has to call before processing IB_MR_REREG_ACCESS.

mlx4 has to retain its duplicate ib_access_writable check because it
implements IB_MR_REREG_ACCESS | IB_MR_REREG_TRANS by changing both items
in place sequentially while the MR is live, so it will continue to not
support this combination.

Cc: [email protected]
Fixes: b40656aa7d ("RDMA/umem: remove FOLL_FORCE usage")
Link: https://patch.msgid.link/r/[email protected]
Reported-by: Philip Tsukerman <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
2026-06-08 13:39:20 -03:00
..
2026-02-24 05:38:45 -05:00
…
2022-02-25 09:36:06 +01:00
…
…
…