Re: [PATCH rdma-rc] RDMA/rxe: Bound MR copy and flush chunks to MR pages
From: Zhu Yanjun
Date: Sat Nov 28 2026 - 19:36:33 EST
在 2026/11/28 16:19, Andrew Stellman 写道:
On Sat, Nov 28, 2026 at 09:21:58AM -0800, Zhu Yanjun wrote:
Please also modify rxe_mr_fill_pages_from_sgt() to account forThanks for looking at this. As far as I can see, that case can't
mr_page_size(mr) relative to PAGE_SIZE when populating MR page
entries and offsets, and remove the obsolete WARN_ON() check.
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.
Do you make tests in your local host? Or just use AI to make static analysis?
Yanjun Zhu
--
Best Regards,
Yanjun.Zhu