Commit 5af6d82
Ming Lei
io_uring/poll: fix POLLERR handling
JIRA: https://issues.redhat.com/browse/RHEL-106845
commit c7cafd5
Author: Pavel Begunkov <asml.silence@gmail.com>
Date: Wed Jul 16 17:20:17 2025 +0100
io_uring/poll: fix POLLERR handling
8c8492c ("io_uring/net: don't retry connect operation on EPOLLERR")
is a little dirty hack that
1) wrongfully assumes that POLLERR equals to a failed request, which
breaks all POLLERR users, e.g. all error queue recv interfaces.
2) deviates the connection request behaviour from connect(2), and
3) racy and solved at a wrong level.
Nothing can be done with 2) now, and 3) is beyond the scope of the
patch. At least solve 1) by moving the hack out of generic poll handling
into io_connect().
Cc: stable@vger.kernel.org
Fixes: 8c8492c ("io_uring/net: don't retry connect operation on EPOLLERR")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/3dc89036388d602ebd84c28e5042e457bdfc952b.1752682444.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Ming Lei <ming.lei@redhat.com>1 parent c09c0b4 commit 5af6d82
2 files changed
+8
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1665 | 1665 | | |
1666 | 1666 | | |
1667 | 1667 | | |
1668 | | - | |
1669 | | - | |
1670 | | - | |
| 1668 | + | |
| 1669 | + | |
| 1670 | + | |
| 1671 | + | |
| 1672 | + | |
1671 | 1673 | | |
1672 | 1674 | | |
1673 | 1675 | | |
| |||
1692 | 1694 | | |
1693 | 1695 | | |
1694 | 1696 | | |
1695 | | - | |
| 1697 | + | |
| 1698 | + | |
1696 | 1699 | | |
| 1700 | + | |
1697 | 1701 | | |
1698 | 1702 | | |
1699 | 1703 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
276 | | - | |
277 | | - | |
278 | 276 | | |
279 | 277 | | |
280 | 278 | | |
| |||
0 commit comments