diff options
author | Jens Axboe <axboe@kernel.dk> | 2023-03-20 11:13:49 -0600 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-03-30 12:49:25 +0200 |
commit | 87f2d329f4cb1a3b5025d49f98379a3ae89b9fd2 (patch) | |
tree | 93ffcf498923868487555d789f725b1c37c2e944 /.gitignore | |
parent | 1c00030a59a9a829b1be04c83dbe66994c0e4826 (diff) | |
download | linux-87f2d329f4cb1a3b5025d49f98379a3ae89b9fd2.tar.gz |
io_uring/net: avoid sending -ECONNABORTED on repeated connection requests
commit 74e2e17ee1f8d8a0928b90434ad7e2df70f8483e upstream. Since io_uring does nonblocking connect requests, if we do two repeated ones without having a listener, the second will get -ECONNABORTED rather than the expected -ECONNREFUSED. Treat -ECONNABORTED like a normal retry condition if we're nonblocking, if we haven't already seen it. Cc: stable@vger.kernel.org Fixes: 3fb1bd688172 ("io_uring/net: handle -EINPROGRESS correct for IORING_OP_CONNECT") Link: https://github.com/axboe/liburing/issues/828 Reported-by: Hui, Chunyang <sanqian.hcy@antgroup.com> Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions