[lkml]   [2018]   [Nov]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH v1] mm/memory_hotplug: drop "online" parameter from add_memory_resource()
On Fri 23-11-18 13:37:40, David Hildenbrand wrote:
> User space should always be in charge of how to online memory and
> if memory should be onlined automatically in the kernel. Let's drop the
> parameter to overwrite this - XEN passes memhp_auto_online, just like
> add_memory(), so we can directly use that instead internally.

Heh, I wanted to get rid of memhp_auto_online so much and now we have it
in the core memory_hotplug. Not a win on my side I would say :/
On the other hand this can be seen as a cleanup because it removes that
ambiguity that some callers might be unaware of the memhp_auto_online
leading to a different behavior.

> Cc: Boris Ostrovsky <>
> Cc: Juergen Gross <>
> Cc: Stefano Stabellini <>
> Cc: Andrew Morton <>
> Cc: Dan Williams <>
> Cc: Oscar Salvador <>
> Cc: Pavel Tatashin <>
> Cc: Michal Hocko <>
> Cc: David Hildenbrand <>
> Cc: Joonsoo Kim <>
> Cc: Arun KS <>
> Cc: Mathieu Malaterre <>
> Cc: Stephen Rothwell <>
> Signed-off-by: David Hildenbrand <>

Acked-by: Michal Hocko <>
Michal Hocko

 \ /
  Last update: 2018-11-23 13:54    [W:0.041 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site