X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=io_u.c;h=1daaf7bea48407c1e6b21f5143730a7c3d22ff97;hp=7b51dd2ee19c3cd2e29a9bbcd4ac96a01ec1eba7;hb=b920b29b99829221550e6620b7b699abdef1a712;hpb=34fbdab48d2399e8d11a6f40353ba00d2edf9151 diff --git a/io_u.c b/io_u.c index 7b51dd2e..1daaf7be 100644 --- a/io_u.c +++ b/io_u.c @@ -576,10 +576,6 @@ static unsigned int __get_next_buflen(struct thread_data *td, struct io_u *io_u, } } - if (td->o.verify != VERIFY_NONE) - buflen = (buflen + td->o.verify_interval - 1) & - ~(td->o.verify_interval - 1); - if (!td->o.bs_unaligned && is_power_of_2(minbs)) buflen &= ~(minbs - 1); @@ -653,13 +649,17 @@ int io_u_quiesce(struct thread_data *td) completed += ret; } + if (td->flags & TD_F_REGROW_LOGS) + regrow_logs(td); + return completed; } static enum fio_ddir rate_ddir(struct thread_data *td, enum fio_ddir ddir) { enum fio_ddir odir = ddir ^ 1; - long usec, now; + long usec; + uint64_t now; assert(ddir_rw(ddir)); now = utime_since_now(&td->start);