diff --git a/fs/io_uring.c b/fs/io_uring.c index cde4ef4c7638b30171ce420c4b23e9637fa03b9a..d248b8c9ab14c1e1d30648d9a4e965dd1a90faeb 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -6223,7 +6223,7 @@ static __poll_t io_uring_poll(struct file *file, poll_table *wait) if (READ_ONCE(ctx->rings->sq.tail) - ctx->cached_sq_head != ctx->rings->sq_ring_entries) mask |= EPOLLOUT | EPOLLWRNORM; - if (READ_ONCE(ctx->rings->cq.head) != ctx->cached_cq_tail) + if (io_cqring_events(ctx, false)) mask |= EPOLLIN | EPOLLRDNORM; return mask;