congestion_wait() don't use WRITE
Subsystems (3)
PATCH 1/1 congestion_wait() don't use WRITE
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 <[email protected]>
--- mm/vmscan.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
mm/vmscan.c +1 -1
@@ -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))
Signature · 9 lines
1.6.0.GIT -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 5 lines · KOSAKI Motohiro
commit
8aa7e847d(Fixcongestion_wait()sync/async vs read/write confusion) replace WRITE withBLK_RW_ASYNC.
Unfortunately, concurrent mm development made the unchanged place accidentally.
I see that was added after 2.6.31, and that is wrong. Your patch looks good.
Acked-by Jens Axboe <[email protected]>
Quoted 26 lines
This patch fixes it too.
Signed-off-by KOSAKI Motohiro <[email protected]>--- mm/vmscan.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)mm/vmscan.c +1
-1@@ -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))Signature · 1 line
1.6.0.GIT
Signature · 7 lines
Jens Axboe -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>