engines/libaio: fix submit loop to use 'ld->queued' for exit
authorJens Axboe <axboe@fb.com>
Wed, 1 Oct 2014 14:42:27 +0000 (08:42 -0600)
committerJens Axboe <axboe@fb.com>
Wed, 1 Oct 2014 14:42:27 +0000 (08:42 -0600)
commit2c3a4ae912d1453e09a2da013669904685c41933
tree0a28fa8c0dd3d24c54576628c7909c7a5ffda70b
parenta120ca7f793b41532b04e3915fcd6646fa37bb4f
engines/libaio: fix submit loop to use 'ld->queued' for exit

We could have head == tail for a full ring, so use the
amount queued as the gauge instead. This would be very
hard to trigger, as it would require a full ring on entry
and the first submit would have to fail to submit anything
before we loop around.

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