From d52fb0c44567cf4fdc2a2c307c32672cc5a57170 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 11 Jan 2007 14:44:40 +0100 Subject: [PATCH] [PATCH] Move disk utilization setup to thread itself We don't want it to include potential file creation before the job runs. Signed-off-by: Jens Axboe --- fio.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fio.c b/fio.c index dd526264..b376c7a1 100644 --- a/fio.c +++ b/fio.c @@ -673,6 +673,7 @@ static void *thread_main(void *data) if (td->exec_prerun) system(td->exec_prerun); + init_disk_util(td); fio_gettime(&td->epoch, NULL); getrusage(RUSAGE_SELF, &td->ru_start); @@ -836,8 +837,6 @@ 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) continue; -- 2.25.1