Re: [PATCH] mm/hugetlb: account for allowed nodes when gathering surplus pages
From: Andrew Morton
Date: Thu Sep 10 2026 - 18:25:40 EST
On Thu, 10 Sep 2026 16:48:56 +0800 Muchun Song <muchun.song@xxxxxxxxx> wrote:
> > This fixes hugetlb mappings when, for example, a task runs with
> > MPOL_BIND on Node 1 while the existing free huge pages are on Node 0.
> >
> > Similar issue also could be found in ltp if the free pages of global pool
> > reside outside the nodes allowed by the application.
> > # cd ltp/testcases/kernel/mem/hugetlb/hugemmap/
> > # numactl --cpunodebind=0 --membind=1 ./hugemmap10
> >
> > Signed-off-by: Huaisheng Ye <yehuaisheng@xxxxxxxxxxxxxx>
>
> Acked-by: Muchun Song <muchun.song@xxxxxxxxx>
Should we backport this?
If so, a Fixes: target would be helpful.