Re: [PATCH v2 2/3] mm: don't rely on system state to detect hot-plug operations

2020-09-15 Thread Laurent Dufour
Le 14/09/2020 à 19:15, David Hildenbrand a écrit : arch/ia64/mm/init.c | 4 +-- drivers/base/node.c | 86 include/linux/node.h | 11 +++--- mm/memory_hotplug.c | 5 +-- 4 files changed, 68 insertions(+), 38 deletions(-) diff --git a/arch/ia

Re: [PATCH v2 2/3] mm: don't rely on system state to detect hot-plug operations

2020-09-14 Thread David Hildenbrand
> arch/ia64/mm/init.c | 4 +-- > drivers/base/node.c | 86 > include/linux/node.h | 11 +++--- > mm/memory_hotplug.c | 5 +-- > 4 files changed, 68 insertions(+), 38 deletions(-) > > diff --git a/arch/ia64/mm/init.c b/arch/ia64/mm/init.c > index b

[PATCH v2 2/3] mm: don't rely on system state to detect hot-plug operations

2020-09-14 Thread Laurent Dufour
In register_mem_sect_under_node() the system_state’s value is checked to detect whether the operation the call is made during boot time or during an hot-plug operation. Unfortunately, that check against SYSTEM_BOOTING is wrong because regular memory is registered at SYSTEM_SCHEDULING state. In addi