engines/libaio: don't reap on EAGAIN and no pending events
authorJens Axboe <axboe@fb.com>
Wed, 1 Oct 2014 02:28:45 +0000 (20:28 -0600)
committerJens Axboe <axboe@fb.com>
Wed, 1 Oct 2014 02:28:45 +0000 (20:28 -0600)
commita120ca7f793b41532b04e3915fcd6646fa37bb4f
tree52ee20fb36d7a2406bed818d5105ceae5c6e14e9
parent1f440ece6127d2d274b961b6af0aa9091787702a
engines/libaio: don't reap on EAGAIN and no pending events

Instead just loop on submit, since there are no events for us
to reap. This is usually a kernel bug, violating the principle
of forward progress guarantee.

If we can't submit anything in 30 seconds, error out.

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