[PATCH] Fix busy-looping with aio engine and depth > 1

It's ok for io_getevents() to return 0, if min_nr is 0. Check
first if io_getevents() returns >= min_nr, if so then just break
and return.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
1 file changed