Netdev List
 help / color / mirror / Atom feed
* [PATCH net-next v3 0/4] vsock: consolidate acceptq accounting into core helpers
@ 2026-06-12  4:52 Raf Dickson
  2026-06-12  4:52 ` [PATCH net-next v3 1/4] vsock: introduce vsock_pending_to_accept() helper Raf Dickson
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Raf Dickson @ 2026-06-12  4:52 UTC (permalink / raw)
  To: netdev, virtualization
  Cc: pabeni, sgarzare, stefanha, bryan-bt.tan, vishnu.dasa,
	bcm-kernel-feedback-list, bobbyeshleman, leonardi, horms,
	edumazet, kuba, Raf Dickson

These patches follow up on commit c05fa14db43e
("vsock/vmci: fix sk_ack_backlog leak on failed handshake")
by consolidating sk_acceptq_added() and sk_acceptq_removed() into
the core vsock helpers so transports cannot forget them.

Changes since v2:
  - Add vsock_pending_to_accept() helper for the vmci pending->accept
    transition, avoiding a double sk_acceptq_added() (Stefano Garzarella)
  - Split into 4 patches for bisectability (Stefano Garzarella)
  - Fold sk_acceptq_added() into vsock_add_pending() as a separate patch

Link: https://lore.kernel.org/netdev/20260611021317.69362-1-rafdog35@gmail.com/

Raf Dickson (4):
  vsock: introduce vsock_pending_to_accept() helper
  vsock: fold sk_acceptq_added() into vsock_add_pending()
  vsock: fold sk_acceptq_added() into vsock_enqueue_accept()
  vsock: fold sk_acceptq_removed() into vsock_remove_pending()

 include/net/af_vsock.h                  |  1 +
 net/vmw_vsock/af_vsock.c                | 14 +++++++++++++-
 net/vmw_vsock/hyperv_transport.c        |  1 -
 net/vmw_vsock/virtio_transport_common.c |  1 -
 net/vmw_vsock/vmci_transport.c          |  8 ++------
 5 files changed, 16 insertions(+), 9 deletions(-)

-- 
2.54.0


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-06-12 10:48 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-12  4:52 [PATCH net-next v3 0/4] vsock: consolidate acceptq accounting into core helpers Raf Dickson
2026-06-12  4:52 ` [PATCH net-next v3 1/4] vsock: introduce vsock_pending_to_accept() helper Raf Dickson
2026-06-12 10:41   ` Stefano Garzarella
2026-06-12  4:52 ` [PATCH net-next v3 2/4] vsock: fold sk_acceptq_added() into vsock_add_pending() Raf Dickson
2026-06-12 10:42   ` Stefano Garzarella
2026-06-12  4:52 ` [PATCH net-next v3 3/4] vsock: fold sk_acceptq_added() into vsock_enqueue_accept() Raf Dickson
2026-06-12 10:46   ` Stefano Garzarella
2026-06-12  4:52 ` [PATCH net-next v3 4/4] vsock: fold sk_acceptq_removed() into vsock_remove_pending() Raf Dickson
2026-06-12 10:48   ` Stefano Garzarella

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox