kernel/fs: fix I/O wait not accounted for RW O_DSYNC
authorStephane Gasparini <stephane.gasparini@linux.intel.com>
Tue, 9 Feb 2016 16:07:38 +0000 (17:07 +0100)
committerJens Axboe <axboe@fb.com>
Tue, 9 Feb 2016 16:27:01 +0000 (09:27 -0700)
commitd57d611505d911c6f9f81cd9bd6dbd293d66dd9f
treee4616ad08b32aa47a3050e42e706d20212c8955f
parent09954bad448791ef01202351d437abdd9497a804
kernel/fs: fix I/O wait not accounted for RW O_DSYNC

 When a process is doing Random Write with O_DSYNC flag
 the I/O wait are not accounted in the kernel (get_cpu_iowait_time_us).
 This is preventing the governor or the cpufreq driver to account for
 I/O wait and thus use the right pstate

Signed-off-by: Stephane Gasparini <stephane.gasparini@linux.intel.com>
Signed-off-by: Philippe Longepe <philippe.longepe@linux.intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/bio.c