From 380cf265b2ae035fc346718f30c3d01a18e4640f Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 11 Jan 2007 14:01:27 +0100 Subject: [PATCH] [PATCH] Really fixup disk util init Include disk io ticks, if the job itself creates the file. Don't include it, if we create the file before running the job. Signed-off-by: Jens Axboe --- fio.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/fio.c b/fio.c index dd526264..ca589233 100644 --- a/fio.c +++ b/fio.c @@ -836,10 +836,10 @@ static void run_threads(void) for_each_td(td, i) { print_status_init(td->thread_number - 1); - init_disk_util(td); - - if (!td->create_serialize) + if (!td->create_serialize) { + init_disk_util(td); continue; + } /* * do file setup here so it happens sequentially, @@ -850,6 +850,8 @@ static void run_threads(void) td_set_runstate(td, TD_REAPED); todo--; } + + init_disk_util(td); } while (todo) { -- 2.25.1