Re: [PATCH 3/3] mm, meminit: Ensure node is online before checking whether pages are uninitialised

From: David Rientjes
Date: Tue Jul 12 2016 - 19:29:02 EST


On Fri, 8 Jul 2016, Mel Gorman wrote:

> early_page_uninitialised looks up an arbitrary PFN. While a machine without
> node 0 will boot with "mm, page_alloc: Always return a valid node from
> early_pfn_to_nid", it works because it assumes that nodes are always in
> PFN order. This is not guaranteed so this patch adds robustness by always
> checking if the node being checked is online.
>
> Signed-off-by: Mel Gorman <mgorman@xxxxxxxxxxxxxxxxxxx>
> Cc: <stable@xxxxxxxxxxxxxxx> # 4.2+

Acked-by: David Rientjes <rientjes@xxxxxxxxxx>