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>
if (diff < td_max_bs(td))
return false;
if (diff < td_max_bs(td))
return false;
- if (fio_files_done(td))
+ if (fio_files_done(td) && !td->o.io_limit)
return false;
return true;
return false;
return true;