Pavel Begunkov 8f487ef2cb io_uring: mitigate unlikely iopoll lag
We have requests like IORING_OP_FILES_UPDATE that don't go through
->iopoll_list but get completed in place under ->uring_lock, and so
after dropping the lock io_iopoll_check() should expect that some CQEs
might have get completed in a meanwhile.

Currently such events won't be accounted in @nr_events, and the loop
will continue to poll even if there is enough of CQEs. It shouldn't be a
problem as it's not likely to happen and so, but not nice either. Just
return earlier in this case, it should be enough.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/66ef932cc66a34e3771bbae04b2953a8058e9d05.1625747741.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2021-07-08 14:07:43 -06:00
..
2021-05-07 11:18:52 -07:00
2021-06-25 09:41:29 -07:00
2021-03-30 16:54:49 -07:00
2021-06-30 12:12:56 -07:00
2021-06-29 10:53:48 -07:00
2021-04-12 15:04:29 +02:00
2021-06-29 10:53:48 -07:00
2021-06-29 10:53:48 -07:00
2021-05-07 11:23:41 -07:00
2021-04-30 15:17:08 -07:00
2021-06-30 12:21:16 -07:00
2021-06-29 10:53:48 -07:00
\n
2021-07-01 12:06:39 -07:00
\n
2021-07-01 12:06:39 -07:00
2021-06-30 15:51:09 -07:00
2021-01-24 14:27:20 +01:00
2021-01-24 14:27:20 +01:00
2021-02-23 13:39:45 -08:00
\n
2021-07-01 12:06:39 -07:00
2021-01-24 14:27:19 +01:00
2021-02-23 13:39:45 -08:00
2021-06-18 09:22:02 -06:00
2021-04-12 15:04:23 +02:00
2021-05-07 11:23:41 -07:00
2021-06-29 10:53:48 -07:00
2021-04-27 12:49:42 -07:00
2021-02-24 13:38:26 -08:00
2021-01-24 14:27:20 +01:00
2021-01-24 14:27:19 +01:00
2021-02-21 11:02:48 -08:00
2021-02-13 17:17:53 +01:00
2021-06-01 07:44:32 -06:00
2021-06-18 11:43:09 +02:00
2021-01-24 14:27:18 +01:00