summaryrefslogtreecommitdiffstats
path: root/mm/migrate.c
diff options
context:
space:
mode:
authorMel Gorman <mgorman@suse.de>2012-01-13 02:19:33 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2012-01-13 05:13:09 +0100
commit7335084d446b83cbcb15da80497d03f0c1dc9e21 (patch)
tree1bc34f3cc12a4f6fce19b8eeaed52dc3e4202b5b /mm/migrate.c
parentmm: vmscan: check if we isolated a compound page during lumpy scan (diff)
downloadlinux-7335084d446b83cbcb15da80497d03f0c1dc9e21.tar.xz
linux-7335084d446b83cbcb15da80497d03f0c1dc9e21.zip
mm: vmscan: do not OOM if aborting reclaim to start compaction
During direct reclaim it is possible that reclaim will be aborted so that compaction can be attempted to satisfy a high-order allocation. If this decision is made before any pages are reclaimed, it is possible that 0 is returned to the page allocator potentially triggering an OOM. This has not been observed but it is a possibility so this patch addresses it. Signed-off-by: Mel Gorman <mgorman@suse.de> Reviewed-by: Rik van Riel <riel@redhat.com> Cc: Andrea Arcangeli <aarcange@redhat.com> Cc: Minchan Kim <minchan.kim@gmail.com> Cc: Dave Jones <davej@redhat.com> Cc: Jan Kara <jack@suse.cz> Cc: Andy Isaacson <adi@hexapodia.org> Cc: Nai Xia <nai.xia@gmail.com> Cc: Johannes Weiner <jweiner@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/migrate.c')
0 files changed, 0 insertions, 0 deletions