From 3951414db33cb12656d218156274d619271421f9 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 12 Feb 2007 18:49:58 +0100 Subject: [PATCH] [PATCH] Total io is the sum of READ and WRITE Was broken for mixed read/write workloads. Signed-off-by: Jens Axboe --- fio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fio.c b/fio.c index 2aeb6f72..ace8c5ee 100644 --- a/fio.c +++ b/fio.c @@ -382,7 +382,7 @@ static void do_io(struct thread_data *td) td_set_runstate(td, TD_RUNNING); - while (td->this_io_bytes[td->ddir] < td->io_size) { + while ((td->this_io_bytes[0] + td->this_io_bytes[1]) < td->io_size) { struct timespec *timeout; int min_evts = 0; struct io_u *io_u; -- 2.25.1