Fix failure to exit IO loop on some IO sizes
authorJens Axboe <axboe@kernel.dk>
Sun, 3 Feb 2013 13:20:44 +0000 (14:20 +0100)
committerJens Axboe <axboe@kernel.dk>
Sun, 3 Feb 2013 13:20:44 +0000 (14:20 +0100)
commit5bd5f71a3e54950fb4bee64c7ad5edc67e40b8c8
tree882d51e61685861bf446d4bbcefbb9883caf6577
parentf41862f7e3f61f6f133dd7477c4aa5385d612f62
Fix failure to exit IO loop on some IO sizes

If the size of a file isn't a multiple of the block size being
used, it can cause fio to exit the IO loop, check bytes done,
and then decide to do one more loop since we didn't do quite
as much IO as we wanted to. This happens because the minimum
block size is larger than the remainder. So check for that,
and stop if we need to.

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