Fix inverted logic in gtod_reduce()
authorJens Axboe <axboe@fb.com>
Fri, 14 Feb 2014 03:04:02 +0000 (20:04 -0700)
committerJens Axboe <axboe@fb.com>
Fri, 14 Feb 2014 03:04:02 +0000 (20:04 -0700)
Fixes a bug in the previous commit, where someone wasn't
thinking straight...

Signed-off-by: Jens Axboe <axboe@fb.com>
io_u.c

diff --git a/io_u.c b/io_u.c
index 5f39987ab4e9e781ad9ae8acd7d9ae98bfca680c..61038a4d07e899fa3af3c952014f504bfd96fdbd 100644 (file)
--- 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,