summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNguyen Dinh Phi <phind.uet@gmail.com>2026-08-14 01:30:19 +0800
committerPaolo Abeni <pabeni@redhat.com>2026-08-18 14:58:53 +0200
commit81fc0f369637ed6ee615d089d3016ba88b2bab71 (patch)
treebe88b7d28794d1656be7aadf8b76a527a7543d95 /include
parentb8c899cf5e7be29840a172c183dedd8d3e7a0287 (diff)
downloadlinux-81fc0f369637ed6ee615d089d3016ba88b2bab71.tar.gz
linux-81fc0f369637ed6ee615d089d3016ba88b2bab71.zip
vsock: remove the now-unused rejected flag
After previous patch, the branch marking a socket rejected in vsock_accept() is unreachable, and nothing ever sets vsk->rejected elsewhere. In fact, since commit d021c344051a ("VSOCK: Introduce VM Sockets"), where `rejected` was introduced, there has never been a path that sets sk_err on a listening socket, so that branch has been dead code since the beginning. Therefore, we can remove the `rejected` field from vsock_sock structure. Suggested-by: Stefano Garzarella <sgarzare@redhat.com> Signed-off-by: Nguyen Dinh Phi <phind.uet@gmail.com> Reviewed-by: Stefano Garzarella <sgarzare@redhat.com> Link: https://patch.msgid.link/20260813173024.2362935-3-phind.uet@gmail.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/net/af_vsock.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/net/af_vsock.h b/include/net/af_vsock.h
index 30046a3c20f7..3357ee62d10b 100644
--- a/include/net/af_vsock.h
+++ b/include/net/af_vsock.h
@@ -52,13 +52,10 @@ struct vsock_sock {
* The listening socket is the head for both lists. Sockets created
* for connection requests are placed in the pending list until they
* are connected, at which point they are put in the accept queue list
- * so they can be accepted in accept(). If accept() cannot accept the
- * connection, it is marked as rejected so the cleanup function knows
- * to clean up the socket.
+ * so they can be accepted in accept().
*/
struct list_head pending_links;
struct list_head accept_queue;
- bool rejected;
struct delayed_work connect_work;
struct delayed_work pending_work;
struct delayed_work close_work;