Re: [PATCH v3 9/9] memory-hotplug: allocate zone's pcp before onlining pages

2012-10-19 Thread KOSAKI Motohiro
On Fri, Oct 19, 2012 at 2:46 AM, wrote: > From: Wen Congyang > > We use __free_page() to put a page to buddy system when onlining pages. > __free_page() will store NR_FREE_PAGES in zone's pcp.vm_stat_diff, so we > should allocate zone's pcp before onlining pages, otherwise we will lose > some fr

[PATCH v3 9/9] memory-hotplug: allocate zone's pcp before onlining pages

2012-10-18 Thread wency
From: Wen Congyang We use __free_page() to put a page to buddy system when onlining pages. __free_page() will store NR_FREE_PAGES in zone's pcp.vm_stat_diff, so we should allocate zone's pcp before onlining pages, otherwise we will lose some free pages. CC: David Rientjes CC: Jiang Liu CC: Len