From: Vlastimil Babka Date: Wed, 10 Dec 2014 23:43:04 +0000 (-0800) Subject: mm, page_isolation: drain single zone pcplists X-Git-Tag: submit/tizen/20160607.132125~3419^2~149 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ec25af84b23b6862341b5b5b68d24be3f53b8d2c;p=sdk%2Femulator%2Femulator-kernel.git mm, page_isolation: drain single zone pcplists When setting MIGRATETYPE_ISOLATE on a pageblock, pcplists are drained to have a better chance that all pages will be successfully isolated and not left in the per-cpu caches. Since isolation is always concerned with a single zone, we can reduce the pcplists drain to the single zone, which is now possible. The change should make memory isolation faster and not disturbing unrelated pcplists anymore. Signed-off-by: Vlastimil Babka Cc: Naoya Horiguchi Cc: Mel Gorman Cc: Rik van Riel Cc: Yasuaki Ishimatsu Cc: Zhang Yanfei Cc: Xishi Qiu Cc: Vladimir Davydov Cc: Joonsoo Kim Cc: Michal Nazarewicz Cc: Marek Szyprowski Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/page_isolation.c b/mm/page_isolation.c index f2452e5..72f5ac3 100644 --- a/mm/page_isolation.c +++ b/mm/page_isolation.c @@ -68,7 +68,7 @@ out: spin_unlock_irqrestore(&zone->lock, flags); if (!ret) - drain_all_pages(NULL); + drain_all_pages(zone); return ret; }