steadystate: rename 'steadystate' to 'steadystate_enabled'
authorJens Axboe <axboe@fb.com>
Sun, 14 Aug 2016 02:34:41 +0000 (20:34 -0600)
committerJens Axboe <axboe@fb.com>
Mon, 15 Aug 2016 15:44:52 +0000 (09:44 -0600)
Signed-off-by: Jens Axboe <axboe@fb.com>
fio.h
helper_thread.c
init.c
steadystate.c
steadystate.h

diff --git a/fio.h b/fio.h
index d099da8..aca5afa 100644 (file)
--- a/fio.h
+++ b/fio.h
@@ -472,9 +472,6 @@ extern char *trigger_remote_cmd;
 extern long long trigger_timeout;
 extern char *aux_path;
 
-extern bool steadystate;
-#define STEADYSTATE_MSEC (1000)
-
 extern struct thread_data *threads;
 
 static inline void fio_ro_check(const struct thread_data *td, struct io_u *io_u)
index f88e781..47ec728 100644 (file)
@@ -125,7 +125,7 @@ static void *helper_thread_main(void *data)
                if (!next_log)
                        next_log = DISK_UTIL_MSEC;
 
-               if (steadystate) {
+               if (steadystate_enabled) {
                        since_ss = mtime_since(&last_ss, &now);
                        if (since_ss >= STEADYSTATE_MSEC || STEADYSTATE_MSEC - since_ss < 10) {
                                steadystate_check();
diff --git a/init.c b/init.c
index 9113865..64119eb 100644 (file)
--- a/init.c
+++ b/init.c
@@ -1579,7 +1579,7 @@ static int add_job(struct thread_data *td, const char *jobname, int job_add_num,
        }
 
        if (o->ss_dur) {
-               steadystate = true;
+               steadystate_enabled = true;
                o->ss_dur /= 1000000L;
 
                /* put all steady state info in one place */
index 53d3034..528e952 100644 (file)
@@ -4,14 +4,14 @@
 #include "steadystate.h"
 #include "helper_thread.h"
 
-bool steadystate = false;
+bool steadystate_enabled = false;
 
 void steadystate_setup(void)
 {
        int i, prev_groupid;
        struct thread_data *td, *prev_td;
 
-       if (!steadystate)
+       if (!steadystate_enabled)
                return;
 
        /*
index aa31112..5342b2c 100644 (file)
@@ -7,7 +7,7 @@ extern void steadystate_check(void);
 extern void steadystate_setup(void);
 extern void steadystate_alloc(struct thread_data *);
 
-extern bool steadystate;
+extern bool steadystate_enabled;
 
 /*
  * For steady state detection
@@ -51,6 +51,8 @@ enum {
        FIO_STEADYSTATE_BW_SLOPE,
 };
 
+#define STEADYSTATE_MSEC       1000
+
 static inline bool steadystate_check_slope(struct thread_options *o)
 {
        return o->ss == FIO_STEADYSTATE_IOPS_SLOPE ||