linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] congestion_wait() don't use WRITE
@ 2009-10-02  8:06 KOSAKI Motohiro
  2009-10-02  8:10 ` Jens Axboe
  0 siblings, 1 reply; 2+ messages in thread
From: KOSAKI Motohiro @ 2009-10-02  8:06 UTC (permalink / raw)
  To: LKML, linux-mm, Andrew Morton, Rik van Riel, Jens Axboe; +Cc: kosaki.motohiro


commit 8aa7e847d (Fix congestion_wait() sync/async vs read/write confusion)
replace WRITE with BLK_RW_ASYNC.
Unfortunately, concurrent mm development made the unchanged place
accidentally.

This patch fixes it too.

Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
---
 mm/vmscan.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/mm/vmscan.c b/mm/vmscan.c
index 4a7b0d5..e4a915b 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -1088,7 +1088,7 @@ static unsigned long shrink_inactive_list(unsigned long max_scan,
 	int lumpy_reclaim = 0;
 
 	while (unlikely(too_many_isolated(zone, file, sc))) {
-		congestion_wait(WRITE, HZ/10);
+		congestion_wait(BLK_RW_ASYNC, HZ/10);
 
 		/* We are about to die and free our memory. Return now. */
 		if (fatal_signal_pending(current))
-- 
1.6.0.GIT



--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-10-02  8:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-02  8:06 [PATCH] congestion_wait() don't use WRITE KOSAKI Motohiro
2009-10-02  8:10 ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox