Skip to content

Commit e45ec96

Browse files
isilenceaxboe
authored andcommitted
io_uring: remove extra SQPOLL overflow flush
c1edbf5 ("io_uring: flag SQPOLL busy condition to userspace") added an extra overflowed CQE flush in the SQPOLL submission path due to backpressure, which was later removed. Remove the flush and let io_cqring_wait() / iopoll handle it. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/2a83b0724ca6ca9d16c7d79a51b77c81876b2e39.1712708261.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent a5bff51 commit e45ec96

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

io_uring/io_uring.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3238,8 +3238,6 @@ SYSCALL_DEFINE6(io_uring_enter, unsigned int, fd, u32, to_submit,
32383238
*/
32393239
ret = 0;
32403240
if (ctx->flags & IORING_SETUP_SQPOLL) {
3241-
io_cqring_overflow_flush(ctx);
3242-
32433241
if (unlikely(ctx->sq_data->thread == NULL)) {
32443242
ret = -EOWNERDEAD;
32453243
goto out;

0 commit comments

Comments
 (0)