On Thu, Jun 11, 2026 at 08:55:37AM +0000, Raf Dickson wrote:
On Thu, Jun 11, 2026 at 10:27:42AM +0200, Stefano Garzarella wrote:
Maybe adding a new function that moves a socket from the pending queue
to the accept queue avoiding also sock_put/sock_hold dance and
sk_acceptq_removed()/sk_acceptq_added().

To be called in vmci_transport_recv_connecting_server().

So can we move sk_acceptq_added() also in vsock_add_pending()?

I like the vsock_pending_to_accept() approach, it makes the vmci
path clean without the double-accounting issue. Will send a v3 series
with that as patch 1, followed by folding sk_acceptq_added() into
vsock_add_pending() and sk_acceptq_removed() into vsock_remove_pending()
as separate patches.

Okay, but VMCI still need to call vsock_add_pending() and sk_acceptq_added() in vmci_transport_recv_listen(), no?


Any preference on the name xd? vsock_pending_to_accept() works for me.

Also for me :-)

Stefano


Reply via email to