Skip to content
Commit 63e5d81f authored by Stefano Garzarella's avatar Stefano Garzarella Committed by Jens Axboe
Browse files

io_uring: flush overflowed CQ events in the io_uring_poll()



In io_uring_poll() we must flush overflowed CQ events before to
check if there are CQ events available, to avoid missing events.

We call the io_cqring_events() that checks and flushes any overflow
and returns the number of CQ events available.

Signed-off-by: default avatarStefano Garzarella <sgarzare@redhat.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent cf3040ca
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment