[PATCH] Fix busy-looping with aio engine and depth > 1
authorJens Axboe <jens.axboe@oracle.com>
Mon, 8 Jan 2007 21:27:05 +0000 (22:27 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Mon, 8 Jan 2007 21:27:05 +0000 (22:27 +0100)
commitccbb91cb902f5a1931681248735551815d12c653
tree54bd80d1a17f165afa6f88ebffd78e9d056183c6
parent1188caf84ba7fb6c2b3955ad67f4bf087ede13fd
[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>
engines/fio-engine-libaio.c