diff options
author | KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> | 2010-10-26 17:21:41 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-26 19:52:07 -0400 |
commit | bc57e00f5e0b2480ef222c775c49552d3a930db7 (patch) | |
tree | 51aa33378602a41fb73b9b2fbee2ca04706aa9d6 /mm/vmscan.c | |
parent | 52bb9198668968506f9d12bf35d7f5d3f094921e (diff) |
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 <kosaki.motohiro@jp.fujitsu.com>
Signed-off-by: Mel Gorman <mel@csn.ul.ie>
Reviewed-by: Minchan Kim <minchan.kim@gmail.com>
Reviewed-by: Johannes Weiner <hannes@cmpxchg.org>
Reviewed-by: Wu Fengguang <fengguang.wu@intel.com>
Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Rik van Riel <riel@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/vmscan.c')
-rw-r--r-- | mm/vmscan.c | 2 |
1 files changed, 0 insertions, 2 deletions
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, | |||
1340 | 1340 | ||
1341 | /* Check if we should syncronously wait for writeback */ | 1341 | /* Check if we should syncronously wait for writeback */ |
1342 | if (should_reclaim_stall(nr_taken, nr_reclaimed, priority, sc)) { | 1342 | if (should_reclaim_stall(nr_taken, nr_reclaimed, priority, sc)) { |
1343 | congestion_wait(BLK_RW_ASYNC, HZ/10); | ||
1344 | |||
1345 | /* | 1343 | /* |
1346 | * The attempt at page out may have made some | 1344 | * The attempt at page out may have made some |
1347 | * of the pages active, mark them inactive again. | 1345 | * of the pages active, mark them inactive again. |