commit | a3a0e43fd77013819e4b6f55e37e0efe8e35d805 | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@kernel.dk> | Tue Aug 20 11:03:11 2019 -0600 |
committer | Jens Axboe <axboe@kernel.dk> | Tue Aug 20 11:03:11 2019 -0600 |
tree | ee2773bfcdb36cbd4f721a2e79d325f4b5605c72 | |
parent | cb32de1b7e2591f844f18a5513fde8e2bd49bce0 [diff] |
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>