Fix bad latency reporting for rated IO jobs
authorJens Axboe <jaxboe@fusionio.com>
Tue, 30 Aug 2011 21:34:14 +0000 (15:34 -0600)
committerJens Axboe <jaxboe@fusionio.com>
Tue, 30 Aug 2011 21:34:14 +0000 (15:34 -0600)
commit78c1eda5486f586ca73e9cbe7e40b93fccdbd218
tree6bb1abe189b8ba8a24653a3f743fe43b3941f252
parent5f739e0e2912b809635fac635a8c1140155577e6
Fix bad latency reporting for rated IO jobs

If we are going to sleep to satisfy a given rate limit, then
ensure that we flush pending IO first. Otherwise they end up
including the sleep time in the calculated completion latencies.

Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
io_u.c