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>
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,
td_set_runstate(td, TD_REAPED);
todo--;
}
+
+ init_disk_util(td);
}
while (todo) {