Re: [PATCH v3 11/15] mm/slab: pass slab_alloc_context to __do_kmalloc_node()

From: Suren Baghdasaryan

Date: Wed Jun 17 2026 - 10:53:33 EST


On Wed, Jun 17, 2026 at 2:36 AM Harry Yoo <harry@xxxxxxxxxx> wrote:
>
>
>
> On 6/15/26 8:54 PM, Vlastimil Babka (SUSE) wrote:
> > With alloc_flags usage in slab, we can replace __GFP_NO_OBJ_EXT with an
> > alloc flag that prevents kmalloc recursion. For that we need a version
> > of kmalloc() that takes alloc_flags and use it in places that perform
> > these potentially recursive kmalloc allocations (of sheaves or obj_ext
> > arrays).
> >
> > As a preparatory step, make __do_kmalloc_node() take a pointer to
> > slab_alloc_context. This replaces the 'size' and 'caller' parameters and
> > includes alloc_flags which we'll make use of.
> >
> > Link: https://patch.msgid.link/20260610-slab_alloc_flags-v2-12-7190909db118@xxxxxxxxxx
> > Reviewed-by: Hao Li <hao.li@xxxxxxxxx>
> > Signed-off-by: Vlastimil Babka (SUSE) <vbabka@xxxxxxxxxx>
> > ---
>
> Looks good to me,
> Reviewed-by: Harry Yoo (Oracle) <harry@xxxxxxxxxx>

Reviewed-by: Suren Baghdasaryan <surenb@xxxxxxxxxx>


>
> --
> Cheers,
> Harry / Hyeonggon