backend: terminate loop if we didn't do IO
authorJens Axboe <axboe@fb.com>
Wed, 9 Dec 2015 15:28:00 +0000 (08:28 -0700)
committerJens Axboe <axboe@fb.com>
Wed, 9 Dec 2015 15:28:00 +0000 (08:28 -0700)
commit095196b1e76b1722c37beeeba7df7b2a615688a0
treecf415de51cbd0b28e46bb2620fd14a6747cf6e74
parentc08f9fe23b0f257f914b2d9e0e4f1117418e5da6
backend: terminate loop if we didn't do IO

The below commit modified how we clear stats, and that can sometimes
cause fio to hang around when ramp + runtime has been exceeded. The
below job file showed the issue:

[test-job]
bs=4k
rw=read
direct=1
runtime=6s
ramp_time=5s
ioengine=null
iodepth=32
size=100g

Where it would do the ramp time, then count down the 6s of runtime, then
fio would just sit there busy looping.

Fixes: ac28d9053679 ("Fixup bw/iops logging for short runs")
Signed-off-by: Jens Axboe <axboe@fb.com>
backend.c