From 13af05ae2ece4a277a2f95fd622d1717af538c20 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Sat, 11 Feb 2012 09:04:02 +0100 Subject: [PATCH] Only attempt zone switch if we have zones enabled Just an offset isn't enough. Signed-off-by: Jens Axboe --- io_u.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.25.1