From: KOSAKI Motohiro Date: Tue, 26 Oct 2010 21:21:41 +0000 (-0700) Subject: vmscan: synchronous lumpy reclaim should not call congestion_wait() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bc57e00f5e0b2480ef222c775c49552d3a930db7;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git vmscan: synchronous lumpy reclaim should not call congestion_wait() congestion_wait() means "wait until queue congestion is cleared". However, synchronous lumpy reclaim does not need this congestion_wait() as shrink_page_list(PAGEOUT_IO_SYNC) uses wait_on_page_writeback() and it provides the necessary waiting. Signed-off-by: KOSAKI Motohiro Signed-off-by: Mel Gorman Reviewed-by: Minchan Kim Reviewed-by: Johannes Weiner Reviewed-by: Wu Fengguang Reviewed-by: KAMEZAWA Hiroyuki Cc: Rik van Riel Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/vmscan.c b/mm/vmscan.c index 4a6dccb57586..399d54e8a82c 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -1340,8 +1340,6 @@ shrink_inactive_list(unsigned long nr_to_scan, struct zone *zone, /* Check if we should syncronously wait for writeback */ if (should_reclaim_stall(nr_taken, nr_reclaimed, priority, sc)) { - congestion_wait(BLK_RW_ASYNC, HZ/10); - /* * The attempt at page out may have made some * of the pages active, mark them inactive again.