lkml.org 
[lkml]   [2014]   [Jan]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC] hotplug, memory: move register_memory_resource out of the lock_memory_hotplug
On Tue, 14 Jan 2014 17:05:42 -0800 (PST) David Rientjes <rientjes@google.com> wrote:

> On Tue, 14 Jan 2014, Andrew Morton wrote:
>
> > From: Andrew Morton <akpm@linux-foundation.org>
> > Subject: mm/memory_hotplug.c: register_memory_resource() fixes
> >
> > - register_memory_resource() should not go BUG on ENOMEM. That's
> > appropriate at system boot time, but not at memory-hotplug time. Fix.
> >
> > - register_memory_resource()'s caller is incorrectly replacing
> > request_resource()'s -EBUSY with -EEXIST. Fix this by propagating
> > errors appropriately.
> >
>
> Unfortunately, -EEXIST is a special case return value for both
> acpi_memory_enable_device() and hv_mem_hot_add(), so they would need to be
> modified to agree concurrently with this change.

blah, OK, thanks, I'll drop it.


\
 
 \ /
  Last update: 2014-01-15 10:01    [W:0.043 / U:1.644 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site