From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yh0-f52.google.com (mail-yh0-f52.google.com [209.85.213.52]) by kanga.kvack.org (Postfix) with ESMTP id 407D96B0032 for ; Sun, 19 Apr 2015 22:23:05 -0400 (EDT) Received: by yhcb70 with SMTP id b70so15700674yhc.0 for ; Sun, 19 Apr 2015 19:23:05 -0700 (PDT) Received: from mail-yh0-x229.google.com (mail-yh0-x229.google.com. [2607:f8b0:4002:c01::229]) by mx.google.com with ESMTPS id z66si9729293ykc.133.2015.04.19.19.23.04 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 Apr 2015 19:23:04 -0700 (PDT) Received: by yhrr66 with SMTP id r66so2798321yhr.3 for ; Sun, 19 Apr 2015 19:23:04 -0700 (PDT) Message-ID: <55346307.c32fec0a.3a9a.ffffce16@mx.google.com> Date: Sun, 19 Apr 2015 19:23:03 -0700 (PDT) From: Yasuaki Ishimatsu Subject: Re: [PATCH 1/2 V2] memory-hotplug: fix BUG_ON in move_freepages() In-Reply-To: <55345756.40902@huawei.com> References: <5530E578.9070505@huawei.com> <5531679d.4642ec0a.1beb.3569@mx.google.com> <55345756.40902@huawei.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Xishi Qiu Cc: Andrew Morton , Yasuaki Ishimatsu , Kamezawa Hiroyuki , izumi.taku@jp.fujitsu.com, Tang Chen , Gu Zheng , Xiexiuqi , Mel Gorman , David Rientjes , Linux MM , LKML On Mon, 20 Apr 2015 09:33:10 +0800 Xishi Qiu wrote: > On 2015/4/18 4:05, Yasuaki Ishimatsu wrote: > > > > > Your patches will fix your issue. > > But, if BIOS reports memory first at node hot add, pgdat can > > not be initialized. > > > > Memory hot add flows are as follows: > > > > add_memory > > ... > > -> hotadd_new_pgdat() > > ... > > -> node_set_online(nid) > > > > When calling hotadd_new_pgdat() for a hot added node, the node is > > offline because node_set_online() is not called yet. So if applying > > your patches, the pgdat is not initialized in this case. > > > > Thanks, > > Yasuaki Ishimatsu > > > > Hi Yasuaki, > > I'm not quite understand, when BIOS reports memory first, why pgdat > can not be initialized? > When hotadd a new node, hotadd_new_pgdat() will be called too, and > when hotadd memory to a existent node, it's no need to call hotadd_new_pgdat(), > right? Your patch sikps initialization of pgdat, when node is offline. But when hot adding new node and calling hotadd_new_pgdat(), the node is offline yet. So pgdat is not initialized. Thanks, Yasuaki Ishimatsu > > Thanks, > Xishi Qiu > -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org