• R
    ACPI / scan: Add second pass of companion offlining to hot-remove code · 303bfdb1
    Rafael J. Wysocki 提交于
    As indicated by comments in mm/memory_hotplug.c:remove_memory(),
    if CONFIG_MEMCG is set, it may not be possible to offline all of the
    memory blocks held by one module (FRU) in one pass (because one of
    them may be used by the others to store page cgroup in that case
    and that block has to be offlined before the other ones).
    
    To handle that arguably corner case, add a second pass of companion
    device offlining to acpi_scan_hot_remove() and make it ignore errors
    returned in the first pass (and make it skip the second pass if the
    first one is successful).
    Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
    Acked-by: NToshi Kani <toshi.kani@hp.com>
    303bfdb1
scan.c 55.9 KB