Re: [RFC PATCH] memory-hotplug: Add memblock_state notifier

2012-07-23 Thread Wen Congyang
At 2012/7/23 19:06, Vasilis Liaskovitis Wrote: Hi, On Mon, Jul 23, 2012 at 05:08:04PM +0800, Wen Congyang wrote: +static int memblock_state_notifier_nb(struct notifier_block *nb, unsigned long + val, void *v) +{ + struct memory_notify *arg = (struct memory_notify *)v; +

Re: [RFC PATCH] memory-hotplug: Add memblock_state notifier

2012-07-23 Thread Vasilis Liaskovitis
Hi, On Mon, Jul 23, 2012 at 05:08:04PM +0800, Wen Congyang wrote: > > +static int memblock_state_notifier_nb(struct notifier_block *nb, unsigned > > long > > + val, void *v) > > +{ > > + struct memory_notify *arg = (struct memory_notify *)v; > > + struct memory_block *mem = NULL; >

Re: [RFC PATCH] memory-hotplug: Add memblock_state notifier

2012-07-23 Thread Wen Congyang
At 07/20/2012 07:18 PM, Vasilis Liaskovitis Wrote: > hot-remove initiated by acpi_memhotplug driver tries to offline pages and then > remove section/sysfs files in remove_memory(). remove_memory() will only > proceed > if is_memblk_offline() returns true, i.e. only if the corresponding memblock >