From: Jens Axboe Date: Sat, 11 Feb 2012 08:04:02 +0000 (+0100) Subject: Only attempt zone switch if we have zones enabled X-Git-Tag: fio-2.0.4~37 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=13af05ae2ece4a277a2f95fd622d1717af538c20;p=fio.git Only attempt zone switch if we have zones enabled Just an offset isn't enough. Signed-off-by: Jens Axboe --- diff --git a/io_u.c b/io_u.c index d794f011..161c2cb3 100644 --- a/io_u.c +++ b/io_u.c @@ -668,7 +668,7 @@ static int fill_io_u(struct thread_data *td, struct io_u *io_u) /* * See if it's time to switch to a new zone */ - if (td->zone_bytes >= td->o.zone_size) { + if (td->zone_bytes >= td->o.zone_size && td->o.zone_skip) { td->zone_bytes = 0; io_u->file->file_offset += td->o.zone_range + td->o.zone_skip; io_u->file->last_pos = io_u->file->file_offset;