Re: [PATCH rdma-rc] RDMA/rxe: Bound MR copy and flush chunks to MR pages

From: Andrew Stellman

Date: Sat Nov 28 2026 - 19:19:14 EST


On Sat, Nov 28, 2026 at 09:21:58AM -0800, Zhu Yanjun wrote:
> Please also modify rxe_mr_fill_pages_from_sgt() to account for
> mr_page_size(mr) relative to PAGE_SIZE when populating MR page
> entries and offsets, and remove the obsolete WARN_ON() check.

Thanks for looking at this. As far as I can see, that case can't
happen on current rdma for-rc and mainline. The only caller of
rxe_mr_fill_pages_from_sgt() is rxe_mr_init_user(), which calls
rxe_mr_init() first, and that sets mr->ibmr.page_size = PAGE_SIZE.
Nothing changes it before the fill. The 4 KiB MR pages this patch is
about come from fast registration, which goes through rxe_map_mr_sg()
and rxe_set_page() instead.

So I'd like to keep this patch to the copy and flush bound.