diff --git a/io_uring/io_uring.c b/io_uring/io_uring.c index 862e05e6691d..dc5a8c31d703 100644 --- a/io_uring/io_uring.c +++ b/io_uring/io_uring.c @@ -2653,7 +2653,7 @@ static __poll_t io_uring_poll(struct file *file, poll_table *wait) * pushs them to do the flush. */ - if (io_cqring_events(ctx) || io_has_work(ctx)) + if (__io_cqring_events_user(ctx) || io_has_work(ctx)) mask |= EPOLLIN | EPOLLRDNORM; return mask;