Re: [PATCH v2 1/2] memory-hotplug: don't BUG() in register_memory_resource()
From: David Rientjes
Date: Tue Jan 12 2016 - 18:07:45 EST
On Mon, 4 Jan 2016, 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.
>
> Signed-off-by: Vitaly Kuznetsov <vkuznets@xxxxxxxxxx>
> Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
> Cc: David Rientjes <rientjes@xxxxxxxxxx>
> Cc: Tang Chen <tangchen@xxxxxxxxxxxxxx>
> Cc: Naoya Horiguchi <n-horiguchi@xxxxxxxxxxxxx>
> Cc: Xishi Qiu <qiuxishi@xxxxxxxxxx>
> Cc: Sheng Yong <shengyong1@xxxxxxxxxx>
> Cc: Zhu Guihua <zhugh.fnst@xxxxxxxxxxxxxx>
> Cc: Dan Williams <dan.j.williams@xxxxxxxxx>
> Cc: David Vrabel <david.vrabel@xxxxxxxxxx>
> Cc: Igor Mammedov <imammedo@xxxxxxxxxx>
Acked-by: David Rientjes <rientjes@xxxxxxxxxx>