From ec55e631a976779b94dc22f5ea5b229890bd5a6c Mon Sep 17 00:00:00 2001 From: Vincent Fu Date: Tue, 22 Nov 2016 13:49:18 -0500 Subject: [PATCH] steadystate: rename __FIO_SS_LAST to __FIO_SS_DATA 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 | 6 +++--- steadystate.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/steadystate.c b/steadystate.c index 4dd7f426..f5d80462 100644 --- a/steadystate.c +++ b/steadystate.c @@ -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; /* diff --git a/steadystate.h b/steadystate.h index 209314fb..aea8969b 100644 --- a/steadystate.h +++ b/steadystate.h @@ -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, -- 2.25.1