io_u: skip to the next zone when zoneskip is set to zero
authorVincent Fu <vincent.fu@wdc.com>
Tue, 15 Oct 2019 14:29:56 +0000 (10:29 -0400)
committerJens Axboe <axboe@kernel.dk>
Tue, 15 Oct 2019 15:14:49 +0000 (09:14 -0600)
commit35f561eb40bc3fffd6bfa05f39769087b7fceae4
tree8de9521557e43079d0ee32d4d607cdf6e78c33e3
parent5cd4efe903798f2185a347911a9440324558c89f
io_u: skip to the next zone when zoneskip is set to zero

If zoneskip is not set or set to 0 in zonemode=strided mode, all IO
occurs in a single zone. If zoneskip is non-zero, the next zone begins
zoneskip bytes beyond the end of the current zone. Thus, it's not
possible to access contiguous zones since zoneskip bytes will separate
the end of one zone and the beginning of the next zone.

This patch allows fio to move to the next zone when zoneskip is
explicitly set to 0, making it possible to issue IO to contiguous zones.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_u.c