From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752565AbcGLX3A (ORCPT ); Tue, 12 Jul 2016 19:29:00 -0400 Received: from mail-pf0-f175.google.com ([209.85.192.175]:33265 "EHLO mail-pf0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751465AbcGLX2w (ORCPT ); Tue, 12 Jul 2016 19:28:52 -0400 Date: Tue, 12 Jul 2016 16:28:07 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Mel Gorman cc: Andrew Morton , Linux-MM , LKML Subject: Re: [PATCH 3/3] mm, meminit: Ensure node is online before checking whether pages are uninitialised In-Reply-To: <1468008031-3848-4-git-send-email-mgorman@techsingularity.net> Message-ID: References: <1468008031-3848-1-git-send-email-mgorman@techsingularity.net> <1468008031-3848-4-git-send-email-mgorman@techsingularity.net> User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > Cc: # 4.2+ Acked-by: David Rientjes