mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
writeback: account IO throttling wait as iowait
It makes sense to do IOWAIT when someone is blocked due to IO throttle, as suggested by Kame and Peter. There is an old comment for not doing IOWAIT on throttle, however it has been mismatching the code for a long time. If we stop accounting IOWAIT for 2.6.32, it could be an undesirable behavior change. So restore the io_schedule. CC: KAMEZAWA Hiroyuki <[email protected]> CC: Peter Zijlstra <[email protected]> Signed-off-by: Wu Fengguang <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
parent
8c27959858
commit
d25105e891
2 changed files with 2 additions and 4 deletions
|
|
@ -566,7 +566,8 @@ static void balance_dirty_pages(struct address_space *mapping,
|
|||
if (pages_written >= write_chunk)
|
||||
break; /* We've done our duty */
|
||||
|
||||
schedule_timeout_interruptible(pause);
|
||||
__set_current_state(TASK_INTERRUPTIBLE);
|
||||
io_schedule_timeout(pause);
|
||||
|
||||
/*
|
||||
* Increase the delay for each loop, up to our previous
|
||||
|
|
|
|||
Loading…
Reference in a new issue