Re: [PATCH rdma-rc] RDMA/rxe: Bound MR copy and flush chunks to MR pages
From: Andrew Stellman
Date: Tue Dec 01 2026 - 08:30:54 EST
On Mon, Nov 30, 2026 at 08:53:55PM -0800, Zhu Yanjun wrote:
> Interesting. Would you like to add logs to check if the returned value
> of the function mr_page_size is changed?
I added a log inside the copy loop in rxe_mr_copy_xarray() and reran
the same NVMe/RDMA scatter test (arm64 QEMU, 64 KiB pages, KASAN). In
the copy loop, mr_page_size(mr) returned 4096 and PAGE_SIZE was 65536,
with and without the patch.
For a copy that started at offset 3584 in an MR page, the unpatched
module copied 1024 bytes in one chunk. With the patch it copied 512
bytes, then the other 512 bytes from the next MR page.
The scattered read-back failed in all three runs without the patch,
passed in all three with it, and failed again in all three after going
back to the unpatched module. Aligned 4 KiB I/O passed on both.
I can send the probe patch, test program and logs off-list if you'd
like them.
Andrew