Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
static inline int should_check_rate(struct thread_data *td)
{
static inline int should_check_rate(struct thread_data *td)
{
+ struct thread_options *o = &td->o;
+
- * No minimum rate set, always ok
+ * If some rate setting was given, we need to check it
- if (!td->o.ratemin && !td->o.rate_iops_min)
- return 0;
+ if (o->rate || o->ratemin || o->rate_iops || o->rate_iops_min)
+ return 1;