Don't grab stat mutex for final stat output
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>
diff --git a/backend.c b/backend.c
index 30f78b7..981625b 100644
--- a/backend.c
+++ b/backend.c
@@ -2068,7 +2068,7 @@
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 d836581..89d7194 100644
--- a/stat.c
+++ b/stat.c
@@ -1169,7 +1169,7 @@
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 2e46175..90a7fb3 100644
--- a/stat.h
+++ b/stat.h
@@ -218,6 +218,7 @@
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);