commit | 5bd5f71a3e54950fb4bee64c7ad5edc67e40b8c8 | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@kernel.dk> | Sun Feb 03 14:20:44 2013 +0100 |
committer | Jens Axboe <axboe@kernel.dk> | Sun Feb 03 14:20:44 2013 +0100 |
tree | 882d51e61685861bf446d4bbcefbb9883caf6577 | |
parent | f41862f7e3f61f6f133dd7477c4aa5385d612f62 [diff] |
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>