summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2014-02-13 20:04:02 -0700
committerJens Axboe <axboe@fb.com>2014-02-13 20:04:02 -0700
commitb74b8208826be02d93d0933eb24ad792f4e78f64 (patch)
tree850d17beb2f295c00da2e4219eed95874dba68c9
parentaba6c951a6ecfa7f5471fa0c53ccf85afa32e9a5 (diff)
downloadfio-b74b8208826be02d93d0933eb24ad792f4e78f64.tar.gz
fio-b74b8208826be02d93d0933eb24ad792f4e78f64.tar.bz2
Fix inverted logic in gtod_reduce()
Fixes a bug in the previous commit, where someone wasn't thinking straight... Signed-off-by: Jens Axboe <axboe@fb.com>
-rw-r--r--io_u.c4
1 files 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,