[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 <jens.axboe@oracle.com>
diff --git a/fio.c b/fio.c
index dd52626..ca58923 100644
--- a/fio.c
+++ b/fio.c
@@ -836,10 +836,10 @@
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 @@
td_set_runstate(td, TD_REAPED);
todo--;
}
+
+ init_disk_util(td);
}
while (todo) {