summaryrefslogtreecommitdiffstats
path: root/mm/memory_hotplug.c
diff options
context:
space:
mode:
authorRafael J. Wysocki2013-05-23 10:43:13 +0200
committerRafael J. Wysocki2013-06-01 21:37:10 +0200
commit303bfdb1a14d0460feb859cd008ff81da36b517c (patch)
treeb83243cb57f069ceb5b3c97efaf22612b777f996 /mm/memory_hotplug.c
parentDriver core / MM: Drop offline_memory_block() (diff)
downloadkernel-qcow2-linux-303bfdb1a14d0460feb859cd008ff81da36b517c.tar.gz
kernel-qcow2-linux-303bfdb1a14d0460feb859cd008ff81da36b517c.tar.xz
kernel-qcow2-linux-303bfdb1a14d0460feb859cd008ff81da36b517c.zip
ACPI / scan: Add second pass of companion offlining to hot-remove code
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: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Acked-by: Toshi Kani <toshi.kani@hp.com>
Diffstat (limited to 'mm/memory_hotplug.c')
0 files changed, 0 insertions, 0 deletions