]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: don't enter poll loop if we have CQEs pending
authorJens Axboe <axboe@kernel.dk>
Tue, 20 Aug 2019 17:03:11 +0000 (11:03 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 20 Aug 2019 17:03:11 +0000 (11:03 -0600)
commit7fde84aa4d7b8fc3db8532770ad4ad1f49691deb
treeee2773bfcdb36cbd4f721a2e79d325f4b5605c72
parent33b0dc6c6e9df3516f2e405aeb370eb060d68748
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: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c