Ensure that we have no IO pending when sleeping
authorJens Axboe <axboe@kernel.dk>
Fri, 17 May 2013 10:39:53 +0000 (12:39 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 17 May 2013 10:39:53 +0000 (12:39 +0200)
commit002e7183cb86d6100efef690b6fa90bf0988b084
tree1eabf59211f1cd5106c287b7bfa97a849c5a67a3
parenta46c5e01ba7382395cba7a561bc232e8e978d1f3
Ensure that we have no IO pending when sleeping

For rate limiting or thinktime handling, ensure that we have
no busy IO when we do spin or sleep. Otherwise we potentially
skew the latencies a lot, since events could have been reaped.

Already working for rate iops, just abstracted it out and
ensure that we do the same for thinktime. Only a problem for
certain workloads, those with queuedepth > 1.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
backend.c
io_u.c
ioengine.h