summaryrefslogtreecommitdiff
path: root/mm/memory_hotplug.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-05-23 12:43:13 +0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-06-01 23:37:10 +0400
commit303bfdb1a14d0460feb859cd008ff81da36b517c (patch)
treeb83243cb57f069ceb5b3c97efaf22612b777f996 /mm/memory_hotplug.c
parentea50be59345a2b714fd3ed43e1bba89906c177c3 (diff)
downloadlinux-303bfdb1a14d0460feb859cd008ff81da36b517c.tar.xz
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