Re: [PATCH] memory-hotplug: don't BUG() in register_memory_resource()

2015-12-22 Thread David Rientjes
On Fri, 18 Dec 2015, Vitaly Kuznetsov wrote: > diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c > index 67d488a..9392f01 100644 > --- a/mm/memory_hotplug.c > +++ b/mm/memory_hotplug.c > @@ -127,11 +127,13 @@ void mem_hotplug_done(void) > } > > /* add this memory to iomem resource */ > -s

Re: [PATCH] memory-hotplug: don't BUG() in register_memory_resource()

2015-12-21 Thread Andrew Morton
On Mon, 21 Dec 2015 11:13:15 +0100 Vitaly Kuznetsov wrote: > Andrew Morton writes: > > > On Fri, 18 Dec 2015 15:50:24 +0100 Vitaly Kuznetsov > > wrote: > > > >> Out of memory condition is not a bug and while we can't add new memory in > >> such case crashing the system seems wrong. Propagatin

Re: [PATCH] memory-hotplug: don't BUG() in register_memory_resource()

2015-12-21 Thread Vitaly Kuznetsov
Andrew Morton writes: > On Fri, 18 Dec 2015 15:50:24 +0100 Vitaly Kuznetsov > wrote: > >> Out of memory condition is not a bug and while we can't add new memory in >> such case crashing the system seems wrong. Propagating the return value >> from register_memory_resource() requires interface ch

Re: [PATCH] memory-hotplug: don't BUG() in register_memory_resource()

2015-12-18 Thread Andrew Morton
On Fri, 18 Dec 2015 15:50:24 +0100 Vitaly Kuznetsov wrote: > Out of memory condition is not a bug and while we can't add new memory in > such case crashing the system seems wrong. Propagating the return value > from register_memory_resource() requires interface change. > > --- a/mm/memory_hotplu

Re: [PATCH] memory-hotplug: don't BUG() in register_memory_resource()

2015-12-18 Thread Igor Mammedov
On Fri, 18 Dec 2015 15:50:24 +0100 Vitaly Kuznetsov wrote: > Out of memory condition is not a bug and while we can't add new memory in > such case crashing the system seems wrong. Propagating the return value > from register_memory_resource() requires interface change. > > Cc: Andrew Morton > C

[PATCH] memory-hotplug: don't BUG() in register_memory_resource()

2015-12-18 Thread Vitaly Kuznetsov
Out of memory condition is not a bug and while we can't add new memory in such case crashing the system seems wrong. Propagating the return value from register_memory_resource() requires interface change. Cc: Andrew Morton Cc: Tang Chen Cc: Naoya Horiguchi Cc: Xishi Qiu Cc: Sheng Yong Cc: Dav