path: root/mm/memory.c
diff options
authorWen Congyang <>2012-10-08 16:34:01 -0700
committerLinus Torvalds <>2012-10-09 16:23:02 +0900
commite90bdb7f52f94204c78fb40b0804645defdebd71 (patch)
tree4acb09ecd1f98fd98408f18e816d075601585d2a /mm/memory.c
parenta16cee10c7ab994546ed98d9abfd4de74050124a (diff)
memory-hotplug: update memory block's state and notify userspace
remove_memory() will be called when hot removing a memory device. But even if offlining memory, we cannot notice it. So the patch updates the memory block's state and sends notification to userspace. Additionally, the memory device may contain more than one memory block. If the memory block has been offlined, __offline_pages() will fail. So we should try to offline one memory block at a time. Thus remove_memory() also check each memory block's state. So there is no need to check the memory block's state before calling remove_memory(). Signed-off-by: Wen Congyang <> Signed-off-by: Yasuaki Ishimatsu <> Cc: David Rientjes <> Cc: Jiang Liu <> Cc: Len Brown <> Cc: Christoph Lameter <> Cc: Minchan Kim <> Cc: KOSAKI Motohiro <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
Diffstat (limited to 'mm/memory.c')
0 files changed, 0 insertions, 0 deletions