Fix bug with rate and read/write mixed workloads at 100% bias
authorJens Axboe <axboe@kernel.dk>
Thu, 7 Feb 2013 18:55:24 +0000 (19:55 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 7 Feb 2013 18:55:24 +0000 (19:55 +0100)
commite0224c6bd115b0decd4f330fa8ff43f5e0cc6811
tree1064f72146e29a22c8f678fbea855a194ec7f87b
parentd6b18e27798a7f4fa345515892d9bd1d9370ea7b
Fix bug with rate and read/write mixed workloads at 100% bias

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>
io_u.c