Skip to content
Snippets Groups Projects
Commit a3a0e43f authored by Jens Axboe's avatar Jens Axboe
Browse files

io_uring: don't enter poll loop if we have CQEs pending


We need to check if we have CQEs pending before starting a poll loop,
as those could be the events we will be spinning for (and hence we'll
find none). This can happen if a CQE triggers an error, or if it is
found by eg an IRQ before we get a chance to find it through polling.

Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent cb32de1b
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment