Re: [PATCH for-rc] RDMA/rxe: Allocate the MR page array with kvzalloc()
From: Leon Romanovsky
Date: Thu Nov 26 2026 - 08:57:58 EST
On Mon, 23 Nov 2026 04:26:42 -0500, Qiliang Yuan wrote:
> A user MR keeps a struct rxe_mr_page, 16 bytes on 64-bit, for every
> PAGE_SIZE page it covers, in one array allocated with kzalloc() when the
> MR is registered. Before the array, the pages were kept in an xarray.
>
> With 4 KiB pages, the array of an MR larger than 1 GiB exceeds
> KMALLOC_MAX_SIZE, so registering it fails with -ENOMEM, and the first
> attempt warns:
>
> [...]
Applied, thanks!
[1/1] RDMA/rxe: Allocate the MR page array with kvzalloc()
https://git.kernel.org/rdma/rdma/c/80ca1d1f85f410
Best regards,
--
Leon Romanovsky <leon@xxxxxxxxxx>