Don't grab stat mutex for final stat output
authorJens Axboe <axboe@fb.com>
Fri, 25 Jul 2014 07:51:56 +0000 (09:51 +0200)
committerJens Axboe <axboe@fb.com>
Fri, 25 Jul 2014 07:51:56 +0000 (09:51 +0200)
We should not need it, and there's a bug with getting stuck on it
that hasn't been fully debugged/understood yet. So for now, lets
just forget about the mutex for final output.

Signed-off-by: Jens Axboe <axboe@fb.com>
backend.c
stat.c
stat.h

index 30f78b72f9d15acdca6c04930a8e26db53fa2d5e..981625b61095dd42995d32291ec3fdc4b58cb597 100644 (file)
--- a/backend.c
+++ b/backend.c
@@ -2068,7 +2068,7 @@ int fio_backend(void)
        run_threads();
 
        if (!fio_abort) {
-               show_run_stats();
+               __show_run_stats();
                if (write_bw_log) {
                        int i;
 
diff --git a/stat.c b/stat.c
index d8365811b25f8f485724c2a18cf7b43f2af77465..89d719468cd91aed185a3491e08cb1a1fe7d8313 100644 (file)
--- a/stat.c
+++ b/stat.c
@@ -1169,7 +1169,7 @@ void init_thread_stat(struct thread_stat *ts)
        ts->groupid = -1;
 }
 
-static void __show_run_stats(void)
+void __show_run_stats(void)
 {
        struct group_run_stats *runstats, *rs;
        struct thread_data *td;
diff --git a/stat.h b/stat.h
index 2e46175053e8548bef54843fbd321f7f0094f60f..90a7fb31a1bc2bba6fc43af8b509481918ab1a0c 100644 (file)
--- a/stat.h
+++ b/stat.h
@@ -218,6 +218,7 @@ extern void show_group_stats(struct group_run_stats *rs);
 extern int calc_thread_status(struct jobs_eta *je, int force);
 extern void display_thread_status(struct jobs_eta *je);
 extern void show_run_stats(void);
+extern void __show_run_stats(void);
 extern void show_running_run_stats(void);
 extern void check_for_running_stats(void);
 extern void sum_thread_stats(struct thread_stat *dst, struct thread_stat *src, int nr);