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

2020-09-15 Thread Michal Hocko
On Tue 15-09-20 11:41:42, Laurent Dufour wrote: > In register_mem_sect_under_node() the system_state’s value is checked to > detect whether 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

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

2020-09-15 Thread Oscar Salvador
On Tue, Sep 15, 2020 at 11:41:42AM +0200, Laurent Dufour wrote: > [1] According to Oscar Salvador, using this qemu command line, ACPI memory > hotplug operations are raised at SYSTEM_SCHEDULING state: I would like to stress that this is not the only way we can end up hotplugging memor while state

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

2020-09-15 Thread Laurent Dufour
In register_mem_sect_under_node() the system_state’s value is checked to detect whether 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 addition, memory