From b74b8208826be02d93d0933eb24ad792f4e78f64 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 13 Feb 2014 20:04:02 -0700 Subject: [PATCH] Fix inverted logic in gtod_reduce() Fixes a bug in the previous commit, where someone wasn't thinking straight... Signed-off-by: Jens Axboe --- io_u.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/io_u.c b/io_u.c index 5f39987a..61038a4d 100644 --- a/io_u.c +++ b/io_u.c @@ -1523,8 +1523,8 @@ void io_u_log_error(struct thread_data *td, struct io_u *io_u) static inline int 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_lat && !td->o.disable_slat + && td->o.disable_bw; } static void account_io_completion(struct thread_data *td, struct io_u *io_u, -- 2.25.1