engines/libaio: better protect against a busy loop in getevents()
authorAndrey Kuzmin <andrey.v.kuzmin@gmail.com>
Fri, 10 Oct 2014 02:14:27 +0000 (20:14 -0600)
committerJens Axboe <axboe@fb.com>
Fri, 10 Oct 2014 02:14:27 +0000 (20:14 -0600)
commit3441a52d588b95267f31491d4dca5f1418b1dcf5
treef6aaa9aeea2b355843328540a1ecd454c2a3fb9f
parent9966af7bc3b881e814d337c2417c8033a8848a66
engines/libaio: better protect against a busy loop in getevents()

If we reap nothing and we were asked to reap > 0 events, then
reuse our commit, sleep, and retry loop.

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