X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=backend.c;h=c167f908625f39fd8e344c9f75c705f7fd71adf4;hp=4c2607477c5404fbfc588b0e07d79b367017f997;hb=52a0b9ed71c3e929461e64b39059281948107071;hpb=c9af088bc9f52b58c8ee68d96403b48c8da9964b diff --git a/backend.c b/backend.c index 4c260747..c167f908 100644 --- a/backend.c +++ b/backend.c @@ -837,7 +837,7 @@ static long long usec_for_io(struct thread_data *td, enum fio_ddir ddir) if (td->o.rate_process == RATE_PROCESS_POISSON) { uint64_t val, iops; - iops = bps / td->o.bs[ddir]; + iops = bps / td->o.min_bs[ddir]; val = (int64_t) (1000000 / iops) * -logf(__rand_0_1(&td->poisson_state[ddir])); if (val) { @@ -1920,13 +1920,13 @@ static void *thread_main(void *data) if (td->error || td->terminate) break; - clear_io_state(td, 0); - if (!o->do_verify || o->verify == VERIFY_NONE || td_ioengine_flagged(td, FIO_UNIDIR)) continue; + clear_io_state(td, 0); + fio_gettime(&td->start, NULL); do_verify(td, verify_bytes);