Re: [PATCH v2 0/5] RDMA, IB: replace __get_free_pages() with kmalloc()
From: Leon Romanovsky
Date: Wed Jul 15 2026 - 05:14:41 EST
On Wed, Jul 15, 2026 at 09:32:36AM +0300, Mike Rapoport wrote:
> On Tue, Jul 14, 2026 at 03:28:18PM +0300, Leon Romanovsky wrote:
> > On Tue, Jul 14, 2026 at 03:24:56PM +0300, Leon Romanovsky wrote:
> > > On Mon, Jul 13, 2026 at 10:17:21AM +0300, Mike Rapoport (Microsoft) wrote:
> > > > This is a (small) part of larger work of replacing page allocator calls
> > > > with kmalloc.
> > >
> > > Will you also change get_zeroed_page() in RDMA, or should I
> > > prepare a patch?
>
> A patch would be great!
>
> I do plan to audit all __get_free_pages()/get_zeroed_page() etc call sites,
> but obviously it will take some time.
>
> For now I only sent patches where the replacement was obvious and didn't
> require me to dig deep and I surely could miss some.
No problem, I'll handle it.
Thanks
>
> > ➜ kernel git:(wip/leon-for-next) git grep get_zeroed_page drivers/infiniband/
> > drivers/infiniband/hw/bnxt_re/ib_verbs.c: srq->uctx_srq_page = (void *)get_zeroed_page(GFP_KERNEL);
> > drivers/infiniband/hw/bnxt_re/ib_verbs.c: cq->uctx_cq_page = (void *)get_zeroed_page(GFP_KERNEL);
> > drivers/infiniband/hw/bnxt_re/ib_verbs.c: uctx->shpg = (void *)get_zeroed_page(GFP_KERNEL);
> > drivers/infiniband/hw/mlx4/mr.c: mr->pages = (__be64 *)get_zeroed_page(GFP_KERNEL);
> > drivers/infiniband/hw/qedr/verbs.c: q->db_rec_data = (void *)get_zeroed_page(GFP_USER);
> >
> > Thanks
>
> --
> Sincerely yours,
> Mike.