X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=fio.c;h=ae62d23329839c1c9bc28c5f57a6a826cb42c6f1;hp=c33f7868234ebe5d04ee267de7f3806510bb393b;hb=d091d099aa867596745f2fa0d58631a14a746520;hpb=07b3232de97ac32a873f0b5d17c8f49c18ed3ae7 diff --git a/fio.c b/fio.c index c33f7868..ae62d233 100644 --- a/fio.c +++ b/fio.c @@ -41,6 +41,7 @@ #include "diskutil.h" #include "cgroup.h" #include "profile.h" +#include "lib/rand.h" unsigned long page_mask; unsigned long page_size; @@ -433,6 +434,8 @@ static void do_verify(struct thread_data *td) int ret, min_events; unsigned int i; + dprint(FD_VERIFY, "starting loop\n"); + /* * sync io first and invalidate cache, to make sure we really * read from disk. @@ -570,6 +573,8 @@ sync_done: cleanup_pending_aio(td); td_set_runstate(td, TD_RUNNING); + + dprint(FD_VERIFY, "exiting loop\n"); } /* @@ -1632,6 +1637,7 @@ int main(int argc, char *argv[]) long ps; sinit(); + init_rand(&__fio_rand_state); /* * We need locale for number printing, if it isn't set then just @@ -1688,8 +1694,7 @@ int main(int argc, char *argv[]) cgroup_kill(cgroup_list); sfree(cgroup_list); - if (cgroup_mnt) - sfree(cgroup_mnt); + sfree(cgroup_mnt); fio_mutex_remove(startup_mutex); fio_mutex_remove(writeout_mutex);