diff options
author | Jens Axboe <axboe@kernel.dk> | 2019-08-28 17:59:40 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-08-28 17:59:40 -0600 |
commit | 681ba88a0ec1ac2281b9e3664be964c8c1b3e528 (patch) | |
tree | dd4b6806e6c4703510291696d65d4759aa58f49e /src/setup.c | |
parent | 413ee338d46e4f6f2e5c89627b6279b809d4288a (diff) |
Make io_uring_peek_cqe() return -EAGAIN for no CQEs
Currently we return 0 if someone calls io_uring_peek_cqe(), but
we really should be returning 0 only if we managed to find a
completion entry.
Return -EAGAIN to notify the caller that no entries are there.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'src/setup.c')
0 files changed, 0 insertions, 0 deletions