summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
d6b18e2)
The rate_ddir() might sometimes decide to send the other data
direction, even if we have a workload with rw=randrw and
rwmixread=0. Check for this condition.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
- if (td->rate_pending_usleep[ddir] <= 0)
+ if (td->rate_pending_usleep[ddir] <= 0 || !td->o.rwmix[odir])
if (ddir_trim(ddir))
return ddir;
if (ddir_trim(ddir))
return ddir;