io_cqring_ev_posted() also signals eventfd, and nothing prohibits having eventfd with IOPOLL. The problem is that it will be ignored in io_iopoll_complete() in non IORING_SETUP_SQPOLL case. Signed-off-by: Pavel Begunkov <asml.silence@xxxxxxxxx> --- fs/io_uring.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fs/io_uring.c b/fs/io_uring.c index 96fcdd189ac0..776f593a5bf3 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -1926,9 +1926,7 @@ static void io_iopoll_complete(struct io_ring_ctx *ctx, unsigned int *nr_events, spin_lock_irq(&ctx->completion_lock); io_commit_cqring(ctx); spin_unlock_irq(&ctx->completion_lock); - - if (ctx->flags & IORING_SETUP_SQPOLL) - io_cqring_ev_posted(ctx); + io_cqring_ev_posted(ctx); io_req_free_batch_finish(ctx, &rb); if (!list_empty(&again)) -- 2.24.0