engines/rbd: sort IO by start time before waiting on it
authorJens Axboe <axboe@fb.com>
Wed, 29 Oct 2014 14:26:28 +0000 (08:26 -0600)
committerJens Axboe <axboe@fb.com>
Wed, 29 Oct 2014 14:26:28 +0000 (08:26 -0600)
commit6f9961ac7aea504e8e89e9bc9c3a10f708f19318
treefc3812c1563962e487436fd93b19c2621d0bb6a5
parent8eb3987ca02cdec4ebbee596b4638531b786cc9d
engines/rbd: sort IO by start time before waiting on it

Instead of waiting on the first random IO we find, wait on the
oldest one. For higher queue depth, this should yield better
performance and lower latencies.

Signed-off-by: Jens Axboe <axboe@fb.com>
engines/rbd.c