writeback: account IO throttling wait as iowait
authorWu Fengguang <fengguang.wu@intel.com>
Fri, 9 Oct 2009 10:40:42 +0000 (12:40 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 9 Oct 2009 10:40:42 +0000 (12:40 +0200)
commitd25105e8911bff1dbd68e387f12901c5b1a15fe8
treebcb94e898b9f3b0322db74473e4dd319a16308e2
parent8c279598585e4992a41016bb973993ed15888cb3
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 <kamezawa.hiroyu@jp.fujitsu.com>
CC: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
kernel/sched.c
mm/page-writeback.c