From: Jens Axboe Date: Mon, 12 Feb 2007 17:49:58 +0000 (+0100) Subject: [PATCH] Total io is the sum of READ and WRITE X-Git-Tag: fio-1.12~97 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=3951414db33cb12656d218156274d619271421f9;p=fio.git [PATCH] Total io is the sum of READ and WRITE Was broken for mixed read/write workloads. Signed-off-by: Jens Axboe --- 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;