projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert "[PATCH] Move disk utilization setup to thread itself"
[fio.git]
/
fio.c
diff --git
a/fio.c
b/fio.c
index b376c7a17939459173e4ebd6a6c2242b2697e727..dd52626469a0358cdbacc062d02058b19f148825 100644
(file)
--- a/
fio.c
+++ b/
fio.c
@@
-673,7
+673,6
@@
static void *thread_main(void *data)
if (td->exec_prerun)
system(td->exec_prerun);
if (td->exec_prerun)
system(td->exec_prerun);
- init_disk_util(td);
fio_gettime(&td->epoch, NULL);
getrusage(RUSAGE_SELF, &td->ru_start);
fio_gettime(&td->epoch, NULL);
getrusage(RUSAGE_SELF, &td->ru_start);
@@
-837,6
+836,8
@@
static void run_threads(void)
for_each_td(td, i) {
print_status_init(td->thread_number - 1);
for_each_td(td, i) {
print_status_init(td->thread_number - 1);
+ init_disk_util(td);
+
if (!td->create_serialize)
continue;
if (!td->create_serialize)
continue;