We adjust max_latency and latency_target values to be nsec internally.
Make sure we do this only once for the parent job and don't do it a
second time for a subjob.
Fixes: https://github.com/axboe/fio/issues/1582
Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
if (o->disable_slat)
o->slat_percentiles = 0;
if (o->disable_slat)
o->slat_percentiles = 0;
- /*
- * Fix these up to be nsec internally
- */
- for_each_rw_ddir(ddir)
- o->max_latency[ddir] *= 1000ULL;
+ /* Do this only for the parent job */
+ if (!td->subjob_number) {
+ /*
+ * Fix these up to be nsec internally
+ */
+ for_each_rw_ddir(ddir)
+ o->max_latency[ddir] *= 1000ULL;
- o->latency_target *= 1000ULL;
+ o->latency_target *= 1000ULL;
+ }
/*
* Dedupe working set verifications
/*
* Dedupe working set verifications