On Fri, Feb 14, 2014 at 02:42:34PM +0800, Weijie Yang wrote: > We abort direct reclaim if find the zone is ready for compaction. > Sometimes the zone is just a promoted highmem zone to force scan > pinning highmem, which is not the intended zone the caller want to > alloc page from. In this situation, setting aborted_reclaim to > indicate the caller turn back to retry allocation is waste of time > and could cause a loop in __alloc_pages_slowpath(). > > This patch do not check compaction_ready() on promoted zones to avoid > the above situation, only set aborted_reclaim if the caller intended > zone is ready to compaction. > > Acked-by: Rik van Riel <riel@xxxxxxxxxx> > Signed-off-by: Weijie Yang <weijie.yang@xxxxxxxxxxx> Acked-by: Mel Gorman <mgorman@xxxxxxx> -- Mel Gorman SUSE Labs -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>