Re: [PATCH v2 0/5] RDMA, IB: replace __get_free_pages() with kmalloc()
From: Leon Romanovsky
Date: Tue Jul 14 2026 - 08:29:26 EST
On Mon, 13 Jul 2026 10:17:21 +0300, Mike Rapoport (Microsoft) wrote:
> This is a (small) part of larger work of replacing page allocator calls
> with kmalloc.
>
> My initial intention a few month ago was to remove ugly casts [1], but then
> willy pointed out that Linus objected to something like this [2] and it
> looks like more than a decade old technical debt.
>
> [...]
Applied, thanks!
[1/5] RDMA/umem: ib_umem_get(): use kmalloc() to allocate page array
https://git.kernel.org/rdma/rdma/c/66073100a7b857
[2/5] RDMA/mlx5: replace __get_free_page() with kmalloc()
https://git.kernel.org/rdma/rdma/c/e3d8c413e2e9e8
[3/5] IB/mthca: mthca_reg_user_mr(): use kmalloc() to allocate addresses array
https://git.kernel.org/rdma/rdma/c/5036553f0e39e2
[4/5] IB/mthca: allocate mthca_array memory with kzalloc()
https://git.kernel.org/rdma/rdma/c/45bf0b3da47d75
[5/5] IB/rdmavt: use kzalloc() to allocate QPN-map pages
https://git.kernel.org/rdma/rdma/c/f8d04b0c74e989
Best regards,
--
Leon Romanovsky <leon@xxxxxxxxxx>