From 83f7b64ea7737da8b0454519dc2143d7ed0473d1 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Fri, 25 Jul 2014 09:51:56 +0200 Subject: [PATCH] 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 --- backend.c | 2 +- stat.c | 2 +- stat.h | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/backend.c b/backend.c index 30f78b72..981625b6 100644 --- 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 d8365811..89d71946 100644 --- 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 2e461750..90a7fb31 100644 --- 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); -- 2.25.1