X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=io_u.c;h=f6efae056ec0cff552f2ac038cb770ad8ea948aa;hp=cb8fc4ad606154a89b0ce8d0c99e36cae32deda2;hb=8243be59aa35aa016fcbeee99353b08376953911;hpb=f227e2b61ffb099019e760b0c6bbacb17fa848c4;ds=sidebyside diff --git a/io_u.c b/io_u.c index cb8fc4ad..f6efae05 100644 --- a/io_u.c +++ b/io_u.c @@ -1734,6 +1734,9 @@ static void account_io_completion(struct thread_data *td, struct io_u *io_u, if (td->parent) td = td->parent; + if (!td->o.stats) + return; + if (no_reduce) lusec = utime_since(&io_u->issue_time, &icd->time); @@ -1994,7 +1997,7 @@ int io_u_queued_complete(struct thread_data *td, int min_evts) */ void io_u_queued(struct thread_data *td, struct io_u *io_u) { - if (!td->o.disable_slat && ramp_time_over(td)) { + if (!td->o.disable_slat && ramp_time_over(td) && td->o.stats) { unsigned long slat_time; slat_time = utime_since(&io_u->start_time, &io_u->issue_time);