[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20140818131301.GA16425@mtj.dyndns.org>
Date: Mon, 18 Aug 2014 09:13:01 -0400
From: Tejun Heo <tj@...nel.org>
To: Xishi Qiu <qiuxishi@...wei.com>
Cc: tangchen <tangchen@...fujitsu.com>,
Andrew Morton <akpm@...ux-foundation.org>,
Zhang Yanfei <zhangyanfei@...fujitsu.com>,
Wen Congyang <wency@...fujitsu.com>,
"H. Peter Anvin" <hpa@...or.com>, Linux MM <linux-mm@...ck.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] mem-hotplug: let memblock skip the hotpluggable memory
regions in __next_mem_range()
Hello, Xishi, Tang.
On Mon, Aug 18, 2014 at 11:18:00AM +0800, Xishi Qiu wrote:
> If all the nodes are marked hotpluggable flag, alloc node data will fail.
> Because __next_mem_range_rev() will skip the hotpluggable memory regions.
> numa_register_memblks()
> setup_node_data()
> memblock_find_in_range_node()
> __memblock_find_range_top_down()
> for_each_mem_range_rev()
> __next_mem_range_rev()
I'm not sure clearing hotplug flag for all memory is the best approach
here. The problem is that there are places where we want to be
selectively ignoring the hotplug status and apparently we may want it
back later. Why not add an agument to memblock allocation / iteration
functions so that hotplug area can be skipped selectively?
Thanks.
--
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists