]> Git Repo - linux.git/commit
memory-hotplug: auto offline page_cgroup when onlining memory block failed
authorWen Congyang <[email protected]>
Wed, 12 Dec 2012 00:00:49 +0000 (16:00 -0800)
committerLinus Torvalds <[email protected]>
Wed, 12 Dec 2012 01:22:23 +0000 (17:22 -0800)
commit7c72eb327282ee7fcadc5ef227c075cf72467ba7
tree0be182b26514edc295ea28db7b8224d134039841
parent95a4774d055c72d96ab192a1c6675cbf4d513f71
memory-hotplug: auto offline page_cgroup when onlining memory block failed

When a memory block is onlined, we will try allocate memory on that node
to store page_cgroup.  If onlining the memory block failed, we don't
offline the page cgroup, and we have no chance to offline this page cgroup
unless the memory block is onlined successfully again.  It will cause that
we can't hot-remove the memory device on that node, because some memory is
used to store page cgroup.  If onlining the memory block is failed, there
is no need to stort page cgroup for this memory.  So auto offline
page_cgroup when onlining memory block failed.

Signed-off-by: Wen Congyang <[email protected]>
Cc: David Rientjes <[email protected]>
Cc: Jiang Liu <[email protected]>
Cc: Len Brown <[email protected]>
Cc: Benjamin Herrenschmidt <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Christoph Lameter <[email protected]>
Cc: Minchan Kim <[email protected]>
Acked-by: KOSAKI Motohiro <[email protected]>
Cc: Yasuaki Ishimatsu <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: Mel Gorman <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/page_cgroup.c
This page took 0.067793 seconds and 4 git commands to generate.