Re: [PATCH mm] mm/vmalloc: repair warn_alloc()s in __vmalloc_area_node()

From: Muchun Song
Date: Thu Sep 16 2021 - 02:01:55 EST


On Wed, Sep 15, 2021 at 7:43 PM Vasily Averin <vvs@xxxxxxxxxxxxx> wrote:
>
> Commit f255935b9767 ("mm: cleanup the gfp_mask handling in
> __vmalloc_area_node") added __GFP_NOWARN to gfp_mask unconditionally
> however it disabled all output inside warn_alloc() call.
> This patch saves original gfp_mask and provides it to all warn_alloc() calls.
>
> Fixes: f255935b9767 ("mm: cleanup the gfp_mask handling in __vmalloc_area_node")
> Cc: Christoph Hellwig <hch@xxxxxx>
>
> Signed-off-by: Vasily Averin <vvs@xxxxxxxxxxxxx>

LGTM. Thanks.

Reviewed-by: Muchun Song <songmuchun@xxxxxxxxxxxxx>