Fix bug with zone and zone skipping and io_limit
authorJens Axboe <axboe@fb.com>
Sun, 28 Sep 2014 22:20:58 +0000 (16:20 -0600)
committerJens Axboe <axboe@fb.com>
Sun, 28 Sep 2014 22:20:58 +0000 (16:20 -0600)
commit4c8be5b1569f0aca8c7769803e57b79280d1f668
tree2b37cebc9de1f109fd96574ae2588ec5ad113289
parentac002339c382d56ffcbf2b15a55d07d9d8c2eac6
Fix bug with zone and zone skipping and io_limit

If you do:

dd if=/dev/zero of=/dev/shm/1M bs=1M count=1
fio --bs=4k --rw=write --filename=/dev/shm/1M --name=go \
--zoneskip=4k --zonesize=4k --io_limit=2M

then fio will exit after having performed 512KB of IO, instead
of the specified IO limit. This is a similar issue as was fixed
by commit ac002339c382 with rw sequencing - if we reach the
end of the file with a zone skip, wrap to the beginning.

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