Re: [PATCH 2/2] mem-hotplug: Fix wrong check for zone->pageset initialization in online_pages().

2014-11-04 Thread Tang Chen
On 11/05/2014 09:01 AM, Kamezawa Hiroyuki wrote: > .. > diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c > index 3ab01b2..bc0de0f 100644 > --- a/mm/memory_hotplug.c > +++ b/mm/memory_hotplug.c > @@ -1013,9 +1013,13 @@ int __ref online_pages(unsigned long pfn, unsigned > long nr_pages,

Re: [PATCH 2/2] mem-hotplug: Fix wrong check for zone->pageset initialization in online_pages().

2014-11-04 Thread Kamezawa Hiroyuki
(2014/10/31 18:46), Tang Chen wrote: > When we are doing memory hot-add, the following functions are called: > > add_memory() > |--> hotadd_new_pgdat() > |--> free_area_init_node() >|--> free_area_init_core() > |--> zone->present_pages = realsize; /* 1.

Re: [PATCH 2/2] mem-hotplug: Fix wrong check for zone->pageset initialization in online_pages().

2014-11-04 Thread Tang Chen
On 11/04/2014 04:10 PM, Yasuaki Ishimatsu wrote: > (2014/10/31 18:46), Tang Chen wrote: >> When we are doing memory hot-add, the following functions are called: >> >> add_memory() >> |--> hotadd_new_pgdat() >> |--> free_area_init_node() >>|--> free_area_init_core() >>

Re: [PATCH 2/2] mem-hotplug: Fix wrong check for zone->pageset initialization in online_pages().

2014-11-04 Thread Yasuaki Ishimatsu
(2014/10/31 18:46), Tang Chen wrote: > When we are doing memory hot-add, the following functions are called: > > add_memory() > |--> hotadd_new_pgdat() > |--> free_area_init_node() >|--> free_area_init_core() > |--> zone->present_pages = realsize; /* 1.

Re: [PATCH 2/2] mem-hotplug: Fix wrong check for zone-pageset initialization in online_pages().

2014-11-04 Thread Yasuaki Ishimatsu
(2014/10/31 18:46), Tang Chen wrote: When we are doing memory hot-add, the following functions are called: add_memory() |-- hotadd_new_pgdat() |-- free_area_init_node() |-- free_area_init_core() |-- zone-present_pages = realsize; /* 1. zone is

Re: [PATCH 2/2] mem-hotplug: Fix wrong check for zone-pageset initialization in online_pages().

2014-11-04 Thread Tang Chen
On 11/04/2014 04:10 PM, Yasuaki Ishimatsu wrote: (2014/10/31 18:46), Tang Chen wrote: When we are doing memory hot-add, the following functions are called: add_memory() |-- hotadd_new_pgdat() |-- free_area_init_node() |-- free_area_init_core() |--

Re: [PATCH 2/2] mem-hotplug: Fix wrong check for zone-pageset initialization in online_pages().

2014-11-04 Thread Kamezawa Hiroyuki
(2014/10/31 18:46), Tang Chen wrote: When we are doing memory hot-add, the following functions are called: add_memory() |-- hotadd_new_pgdat() |-- free_area_init_node() |-- free_area_init_core() |-- zone-present_pages = realsize; /* 1. zone is

Re: [PATCH 2/2] mem-hotplug: Fix wrong check for zone-pageset initialization in online_pages().

2014-11-04 Thread Tang Chen
On 11/05/2014 09:01 AM, Kamezawa Hiroyuki wrote: .. diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index 3ab01b2..bc0de0f 100644 --- a/mm/memory_hotplug.c +++ b/mm/memory_hotplug.c @@ -1013,9 +1013,13 @@ int __ref online_pages(unsigned long pfn, unsigned long nr_pages, int

[PATCH 2/2] mem-hotplug: Fix wrong check for zone->pageset initialization in online_pages().

2014-10-31 Thread Tang Chen
When we are doing memory hot-add, the following functions are called: add_memory() |--> hotadd_new_pgdat() |--> free_area_init_node() |--> free_area_init_core() |--> zone->present_pages = realsize; /* 1. zone is populated */ |-->

[PATCH 2/2] mem-hotplug: Fix wrong check for zone-pageset initialization in online_pages().

2014-10-31 Thread Tang Chen
When we are doing memory hot-add, the following functions are called: add_memory() |-- hotadd_new_pgdat() |-- free_area_init_node() |-- free_area_init_core() |-- zone-present_pages = realsize; /* 1. zone is populated */ |--