From: Jens Axboe Date: Tue, 8 Dec 2015 03:24:51 +0000 (-0700) Subject: Fix latency logging if disable_slat and disable_clat is set X-Git-Tag: fio-2.2.13~39 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=3ecc8c6788883c90a88ec492d95a5b148da3daa4;hp=fd595830408b43beabbd94c8ad3d10e1f68356dd;p=fio.git Fix latency logging if disable_slat and disable_clat is set We can still do total latencies. Signed-off-by: Jens Axboe --- diff --git a/io_u.c b/io_u.c index f86367bd..9628d5e3 100644 --- a/io_u.c +++ b/io_u.c @@ -1559,7 +1559,7 @@ struct io_u *get_io_u(struct thread_data *td) out: assert(io_u->file); if (!td_io_prep(td, io_u)) { - if (!td->o.disable_slat) + if (!td->o.disable_lat) fio_gettime(&io_u->start_time, NULL); if (do_scramble) small_content_scramble(io_u); @@ -1605,8 +1605,8 @@ void io_u_log_error(struct thread_data *td, struct io_u *io_u) static inline bool gtod_reduce(struct thread_data *td) { - return td->o.disable_clat && td->o.disable_lat && td->o.disable_slat - && td->o.disable_bw; + return (td->o.disable_clat && td->o.disable_slat && td->o.disable_bw) + || td->o.gtod_reduce; } static void account_io_completion(struct thread_data *td, struct io_u *io_u,