summaryrefslogtreecommitdiffstats
path: root/mm/memory.c
diff options
context:
space:
mode:
authorWeijie Yang <weijie.yang@samsung.com>2014-04-07 15:37:00 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2014-04-07 16:35:50 -0700
commit9bbc04eeb01fcb5c20bb10f34989665df7200163 (patch)
treebafb3ff4118bb08c96f2a584c6cdee59aa873a4d /mm/memory.c
parent619d0d76c1ee943f171c7d4fc021ec7602388579 (diff)
downloadop-kernel-dev-9bbc04eeb01fcb5c20bb10f34989665df7200163.zip
op-kernel-dev-9bbc04eeb01fcb5c20bb10f34989665df7200163.tar.gz
mm/vmscan: do not check compaction_ready on promoted zones
We abort direct reclaim if we find the zone is ready for compaction. Sometimes the zone is just a promoted highmem zone to force a scan of highmem, which is not the intended zone the caller want to allocate a page from. In this situation, setting aborted_reclaim to indicate the caller turned back to retry the allocation is waste of time and could cause a loop in __alloc_pages_slowpath(). This patch does not check compaction_ready() on promoted zones to avoid the above situation. Only set aborted_reclaim if the caller intended zone is ready for compaction. Signed-off-by: Weijie Yang <weijie.yang@samsung.com> Acked-by: Rik van Riel <riel@redhat.com> Acked-by: Mel Gorman <mgorman@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/memory.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud