commit | ccbb91cb902f5a1931681248735551815d12c653 | [log] [tgz] |
---|---|---|
author | Jens Axboe <jens.axboe@oracle.com> | Mon Jan 08 22:27:05 2007 +0100 |
committer | Jens Axboe <jens.axboe@oracle.com> | Mon Jan 08 22:27:05 2007 +0100 |
tree | 54bd80d1a17f165afa6f88ebffd78e9d056183c6 | |
parent | 1188caf84ba7fb6c2b3955ad67f4bf087ede13fd [diff] |
[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>