Fix issue with termination before io_size has been reached
authorJens Axboe <axboe@fb.com>
Thu, 14 Jan 2016 21:44:23 +0000 (14:44 -0700)
committerJens Axboe <axboe@fb.com>
Thu, 14 Jan 2016 21:44:23 +0000 (14:44 -0700)
commit543e2e9d2ebdd26449a3f07934b87c8e1ff35033
treee73b15bf8a2ed9c91e1ba0a35b2d12deda3e3c9f
parent19ddc35b9b97be5af371bb65e93a4864d1dce7b6
Fix issue with termination before io_size has been reached

If the size of the device isn't a multiple of the block size,
then we can exit prematurely for cases where an io_limit has
been set higher than the device size. This is because the file(s)
get marked completely done if bs is a multiple of the device size,
but doesn't for the opposite case.

We should not factor this in for deciding to keep running or not.

Signed-off-by: Jens Axboe <axboe@fb.com>
backend.c