X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=io_u.c;h=161c2cb388d01218628da8468c1fdeba105e40ed;hp=8a033485e7cf9eee2adbb893ab2d13bd2695dde0;hb=fc0b830f419bf64fff6fee91d1d3b9e94da11091;hpb=52c580272d87d2b9b8a65d317bf7c2d432a30fec diff --git a/io_u.c b/io_u.c index 8a033485..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; @@ -1375,7 +1375,8 @@ static void io_completed(struct thread_data *td, struct io_u *io_u, } } - if (ramp_time_over(td) && td->runstate == TD_RUNNING) { + if (ramp_time_over(td) && (td->runstate == TD_RUNNING || + td->runstate == TD_VERIFYING)) { account_io_completion(td, io_u, icd, idx, bytes); if (__should_check_rate(td, idx)) {