steadystate: rename __FIO_SS_LAST to __FIO_SS_DATA
authorVincent Fu <Vincent.Fu@sandisk.com>
Tue, 22 Nov 2016 18:49:18 +0000 (13:49 -0500)
committerVincent Fu <Vincent.Fu@sandisk.com>
Tue, 6 Dec 2016 19:46:18 +0000 (14:46 -0500)
Use __FIO_SS_DATA to indicate whether a job's td contains pointers to the steadystate ring buffers. When group reporting is enabled this will be the last job in the reporting group. When group reporting is not enabled this flag will be set for every job.

steadystate.c
steadystate.h

index 4dd7f42..f5d8046 100644 (file)
@@ -43,7 +43,7 @@ void steadystate_setup(void)
 
                if (prev_groupid != td->groupid) {
                        if (prev_td != NULL) {
-                               prev_td->ss.state |= __FIO_SS_LAST;
+                               prev_td->ss.state |= __FIO_SS_DATA;
                                steadystate_alloc(prev_td);
                        }
                        prev_groupid = td->groupid;
@@ -52,7 +52,7 @@ void steadystate_setup(void)
        }
 
        if (prev_td != NULL && prev_td->o.group_reporting) {
-               prev_td->ss.state |= __FIO_SS_LAST;
+               prev_td->ss.state |= __FIO_SS_DATA;
                steadystate_alloc(prev_td);
        }
 }
@@ -257,7 +257,7 @@ void steadystate_check(void)
                ss->prev_iops = td_iops;
                ss->prev_bytes = td_bytes;
 
-               if (td->o.group_reporting && !(ss->state & __FIO_SS_LAST))
+               if (td->o.group_reporting && !(ss->state & __FIO_SS_DATA))
                        continue;
 
                /*
index 209314f..aea8969 100644 (file)
@@ -46,7 +46,7 @@ enum {
        __FIO_SS_SLOPE          = 4,
        __FIO_SS_ATTAINED       = 8,
        __FIO_SS_RAMP_OVER      = 16,
-       __FIO_SS_LAST           = 32,
+       __FIO_SS_DATA           = 32,
 
        FIO_SS_IOPS             = __FIO_SS_IOPS,
        FIO_SS_IOPS_SLOPE       = __FIO_SS_IOPS | __FIO_SS_SLOPE,