Fix for a race when fio prints I/O statistics periodically
[fio.git] / stat.h
diff --git a/stat.h b/stat.h
index 8aefe03c65099f2f9e157efe7718fc1f9314cef2..8b4416cf2db82a77ac455c1df6e9e34dfebc55ab 100644 (file)
--- a/stat.h
+++ b/stat.h
@@ -214,6 +214,8 @@ struct jobs_eta {
        uint8_t run_str[];
 } __attribute__((packed));
 
+extern struct fio_mutex *stat_mutex;
+
 extern struct jobs_eta *get_jobs_eta(int force, size_t *size);
 
 extern void stat_init(void);