engines/libaio: modify getevents and commit error handling
authorJens Axboe <axboe@fb.com>
Fri, 3 Oct 2014 19:10:23 +0000 (13:10 -0600)
committerJens Axboe <axboe@fb.com>
Fri, 3 Oct 2014 19:10:23 +0000 (13:10 -0600)
commita31dc2dddbdd3e37129799fd4c96be9083bd9845
treeb4d903cf84eadba73a58ab4ef8958182d7837a2b
parente3b4e568b362ec8d89243609e75763b37cf81b17
engines/libaio: modify getevents and commit error handling

If we get some error other than -EAGAIN in getevents(), treat
it as fatal and break.

If we get -ENOMEM on submission, reap events if we can. If we
have no pending events, treat it as a fatal error and break.

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