diff options
| -rw-r--r-- | fs/io_uring.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/io_uring.c b/fs/io_uring.c index 69910fd9ccca..b998e98acd01 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c | |||
| @@ -2576,7 +2576,8 @@ static __poll_t io_uring_poll(struct file *file, poll_table *wait) | |||
| 2576 | poll_wait(file, &ctx->cq_wait, wait); | 2576 | poll_wait(file, &ctx->cq_wait, wait); |
| 2577 | /* See comment at the top of this file */ | 2577 | /* See comment at the top of this file */ |
| 2578 | smp_rmb(); | 2578 | smp_rmb(); |
| 2579 | if (READ_ONCE(ctx->sq_ring->r.tail) + 1 != ctx->cached_sq_head) | 2579 | if (READ_ONCE(ctx->sq_ring->r.tail) - ctx->cached_sq_head != |
| 2580 | ctx->sq_ring->ring_entries) | ||
| 2580 | mask |= EPOLLOUT | EPOLLWRNORM; | 2581 | mask |= EPOLLOUT | EPOLLWRNORM; |
| 2581 | if (READ_ONCE(ctx->cq_ring->r.head) != ctx->cached_cq_tail) | 2582 | if (READ_ONCE(ctx->cq_ring->r.head) != ctx->cached_cq_tail) |
| 2582 | mask |= EPOLLIN | EPOLLRDNORM; | 2583 | mask |= EPOLLIN | EPOLLRDNORM; |
