Re: [PATCH part5 1/7] x86: get pg_data_t's memory from other node

2013-08-12 Thread Tang Chen
On 08/12/2013 10:39 PM, Tejun Heo wrote: Hello, The subject is a bit misleading. Maybe it should say "allow getting ..." rather than "get ..."? Ok, followed. On Thu, Aug 08, 2013 at 06:16:13PM +0800, Tang Chen wrote: .. I suppose the above three paragraphs are trying to say * A

Re: [PATCH part5 1/7] x86: get pg_data_t's memory from other node

2013-08-12 Thread Tejun Heo
Hello, The subject is a bit misleading. Maybe it should say "allow getting ..." rather than "get ..."? On Thu, Aug 08, 2013 at 06:16:13PM +0800, Tang Chen wrote: > A node could have several memory devices. And the device who holds node > data should be hot-removed in the last place. But in

Re: [PATCH part5 1/7] x86: get pg_data_t's memory from other node

2013-08-12 Thread Tejun Heo
Hello, The subject is a bit misleading. Maybe it should say allow getting ... rather than get ...? On Thu, Aug 08, 2013 at 06:16:13PM +0800, Tang Chen wrote: A node could have several memory devices. And the device who holds node data should be hot-removed in the last place. But in NUMA

Re: [PATCH part5 1/7] x86: get pg_data_t's memory from other node

2013-08-12 Thread Tang Chen
On 08/12/2013 10:39 PM, Tejun Heo wrote: Hello, The subject is a bit misleading. Maybe it should say allow getting ... rather than get ...? Ok, followed. On Thu, Aug 08, 2013 at 06:16:13PM +0800, Tang Chen wrote: .. I suppose the above three paragraphs are trying to say * A

[PATCH part5 1/7] x86: get pg_data_t's memory from other node

2013-08-08 Thread Tang Chen
From: Yasuaki Ishimatsu If system can create movable node which all memory of the node is allocated as ZONE_MOVABLE, setup_node_data() cannot allocate memory for the node's pg_data_t. So, use memblock_alloc_try_nid() instead of memblock_alloc_nid() to retry when the first allocation fails.

[PATCH part5 1/7] x86: get pg_data_t's memory from other node

2013-08-08 Thread Tang Chen
From: Yasuaki Ishimatsu isimatu.yasu...@jp.fujitsu.com If system can create movable node which all memory of the node is allocated as ZONE_MOVABLE, setup_node_data() cannot allocate memory for the node's pg_data_t. So, use memblock_alloc_try_nid() instead of memblock_alloc_nid() to retry when the