Re: [RFC] theoretical race between memory hotplug and pfn iterator

2015-12-21 Thread Joonsoo Kim
2015-12-21 17:00 GMT+09:00 Zhu Guihua : > > On 12/21/2015 03:17 PM, Joonsoo Kim wrote: >> >> On Mon, Dec 21, 2015 at 03:00:08PM +0800, Zhu Guihua wrote: >>> >>> On 12/21/2015 11:15 AM, Joonsoo Kim wrote: Hello, memory-hotplug folks. I found theoretical problems between memory ho

Re: [RFC] theoretical race between memory hotplug and pfn iterator

2015-12-21 Thread Zhu Guihua
On 12/21/2015 03:17 PM, Joonsoo Kim wrote: On Mon, Dec 21, 2015 at 03:00:08PM +0800, Zhu Guihua wrote: On 12/21/2015 11:15 AM, Joonsoo Kim wrote: Hello, memory-hotplug folks. I found theoretical problems between memory hotplug and pfn iterator. For example, pfn iterator works something like b

Re: [RFC] theoretical race between memory hotplug and pfn iterator

2015-12-20 Thread Joonsoo Kim
On Mon, Dec 21, 2015 at 03:00:08PM +0800, Zhu Guihua wrote: > > On 12/21/2015 11:15 AM, Joonsoo Kim wrote: > >Hello, memory-hotplug folks. > > > >I found theoretical problems between memory hotplug and pfn iterator. > >For example, pfn iterator works something like below. > > > >for (pfn = zone_st

Re: [RFC] theoretical race between memory hotplug and pfn iterator

2015-12-20 Thread Zhu Guihua
On 12/21/2015 11:15 AM, Joonsoo Kim wrote: Hello, memory-hotplug folks. I found theoretical problems between memory hotplug and pfn iterator. For example, pfn iterator works something like below. for (pfn = zone_start_pfn; pfn < zone_end_pfn; pfn++) { if (!pfn_valid(pfn))

[RFC] theoretical race between memory hotplug and pfn iterator

2015-12-20 Thread Joonsoo Kim
Hello, memory-hotplug folks. I found theoretical problems between memory hotplug and pfn iterator. For example, pfn iterator works something like below. for (pfn = zone_start_pfn; pfn < zone_end_pfn; pfn++) { if (!pfn_valid(pfn)) continue; page = pfn_to_page(pfn);