On Fri, Jun 12, 2026 at 04:52:13AM +0000, Raf Dickson wrote:
Add vsock_pending_to_accept() to move a socket directly from the
pending list to the accept queue in a single operation, avoiding
the sock_put/sock_hold dance and the sk_acceptq_removed()/
sk_acceptq_added() pair that would otherwise be needed when
calling vsock_remove_pending() followed by vsock_enqueue_accept().

Use it in vmci_transport_recv_connecting_server() where a completed
handshake transitions the socket from pending to accept queue.

Suggested-by: Stefano Garzarella <[email protected]>
Signed-off-by: Raf Dickson <[email protected]>
---
include/net/af_vsock.h         |  1 +
net/vmw_vsock/af_vsock.c       | 10 ++++++++++
net/vmw_vsock/vmci_transport.c |  3 +--
3 files changed, 12 insertions(+), 2 deletions(-)

Reviewed-by: Stefano Garzarella <[email protected]>


Reply via email to