From: Marek Szyprowski Date: Thu, 29 Nov 2012 03:18:02 +0000 (+1100) Subject: mm: use migrate_prep() instead of migrate_prep_local() X-Git-Tag: next-20121205~1^2~254 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3259367a629da416dbb77be5c252b754b20e060e;p=karo-tx-linux.git mm: use migrate_prep() instead of migrate_prep_local() __alloc_contig_migrate_range() should use all possible ways to get all the pages migrated from the given memory range, so pruning per-cpu lru lists for all CPUs is required, regadless the cost of such operation. Otherwise some pages which got stuck at per-cpu lru list might get missed by migration procedure causing the contiguous allocation to fail. Reported-by: SeongHwan Yoon Signed-off-by: Marek Szyprowski Signed-off-by: Kyungmin Park Acked-by: Michal Nazarewicz Signed-off-by: Andrew Morton --- diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 5fc7a5d6d28e..1a0bc50820de 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -5780,7 +5780,7 @@ static int __alloc_contig_migrate_range(struct compact_control *cc, unsigned int tries = 0; int ret = 0; - migrate_prep_local(); + migrate_prep(); while (pfn < end || !list_empty(&cc->migratepages)) { if (fatal_signal_pending(current)) {