Re: [PATCH] mm: hugetlb: avoid bogus counter of surplus huge page

From: Andrew Morton
Date: Tue Dec 27 2011 - 18:51:31 EST


On Tue, 27 Dec 2011 13:57:01 +0100
Michal Hocko <mhocko@xxxxxxx> wrote:

> On Fri 23-12-11 21:38:38, Hillf Danton wrote:
> > From: Hillf Danton <dhillf@xxxxxxxxx>
> > Subject: [PATCH] mm: hugetlb: avoid bogus counter of surplus huge page
> >
> > If we have to hand back the newly allocated huge page to page allocator,
> > for any reason, the changed counter should be recovered.
> >
> > Cc: Michal Hocko <mhocko@xxxxxxx>
> > Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx>
> > Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
> > Signed-off-by: Hillf Danton <dhillf@xxxxxxxxx>
>
> Broken since 2.6.27 (caff3a2c: hugetlb: call arch_prepare_hugepage() for
> surplus pages) so a stable material

afacit only s390 is affected, and s390's page_table_alloc() is fairly
immortal, using GFP_KERNEL|__GFP_REPEAT.

So unless Martin and Heiko disagree, I think we can merge this in 3.3-rc1.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/