vsock: SOCK_LINGER rework
Status from this message: This series was applied to netdev/net-next.git (main)
Get series with b4
b4 am [email protected] change-id 20250304-vsock-linger-9026e5f9986cVersions newest first
- v6 Latest5 patches 5 repliesApplied 5/5
- v55 patches 7 repliesSuperseded
- v43 patches 11 repliesSuperseded
Earlier versions · 3
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v3 | 4 patches | 13 replies | Superseded | |
| v2 | 3 patches | 9 replies | Superseded | |
| v1 | 2 patches | 6 replies | Superseded |
Changes in v6 from the cover letter
- Make vsock_wait_sent() return bool, parametrize enable_so_linger() with timeout, don't open code DIV_ROUND_UP [Stefano]
- Link to v5: https://lore.kernel.org/r/[email protected]
Patches in v6 All 5 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | vsock/virtio: Linger on unsent datanet/ | +3 | 0 replies | Applied |
| 2/5 | vsock: Move lingering logic to af_vsock coreinclude/ net/ net/ | +36 | 0 replies | Applied |
| 3/5 | vsock/test: Introduce vsock_wait_sent() helpertools/ tools/ tools/ | +32 | 1 reply | Applied |
| 4/5 | vsock/test: Introduce enable_so_linger() helpertools/ tools/ tools/ | +15 | 1 reply | Applied |
| 5/5 | vsock/test: Add test for an unexpectedly lingering close()tools/ | +52 | 1 reply | Applied |
Reviews trailers per patch
All 5 patches have a Reviewed-by or Acked-by.
| Patch | Stefano Garzarella |
|---|---|
| 1/5 | R-b |
| 2/5 | R-b |
| 3/5 | R-b |
| 4/5 | R-b |
| 5/5 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH net-next v6 0/5] vsock: SOCK_LINGER rework
Change vsock's lingerning to wait on close() until all data is sent, i.e. until workers picked all the packets for processing.
Changes in v6:
- Make vsock_wait_sent() return bool, parametrize enable_so_linger() with timeout, don't open code DIV_ROUND_UP [Stefano]
- Link to v5: https://lore.kernel.org/r/[email protected]
Changes in v5:
- Move unsent_bytes fetching logic to utils.c
- Add a helper for enabling SO_LINGER
- Accommodate for close() taking a long time for reasons unrelated to lingering
- Separate and redo the testcase [Stefano]
- Enrich the comment [Stefano]
- Link to v4: https://lore.kernel.org/r/[email protected]
Changes in v4:
- While in virtio, stick to virtio_transport_unsent_bytes() [Stefano]
- Squash the indentation reduction [Stefano]
- Pull SOCK_LINGER check into vsock_linger() [Stefano]
- Don't explicitly pass sk->sk_lingertime [Stefano]
- Link to v3: https://lore.kernel.org/r/[email protected]
Changes in v3:
- Set "vsock/virtio" topic where appropriate
- Do not claim that Hyper-V and VMCI ever lingered [Stefano]
- Move lingering to af_vsock core [Stefano]
- Link to v2: https://lore.kernel.org/r/[email protected]
Changes in v2:
- Comment that some transports do not implement unsent_bytes [Stefano]
- Reduce the indentation of virtio_transport_wait_close() [Stefano]
- Do not linger on shutdown(), expand the commit messages [Paolo]
- Link to v1: https://lore.kernel.org/r/[email protected]
Changes in v1:
- Do not assume unsent_bytes() is implemented by all transports [Stefano]
- Link to v0: https://lore.kernel.org/netdev/[email protected]/
---
Michal Luczaj (5):
vsock/virtio: Linger on unsent data
vsock: Move lingering logic to af_vsock core vsock/test: Introduce vsock_wait_sent() helper vsock/test: Introduce enable_so_linger() helper vsock/test: Add test for an unexpectedly lingering close()
include/net/af_vsock.h | 1 + net/vmw_vsock/af_vsock.c | 33 +++++++++++++ net/vmw_vsock/virtio_transport_common.c | 21 +-------- tools/testing/vsock/util.c | 38 +++++++++++++++ tools/testing/vsock/util.h | 2 + tools/testing/vsock/vsock_test.c | 83 +++++++++++++++++++++++---------- 6 files changed, 134 insertions(+), 44 deletions(-)
---
base-commit: f44092606a3f153bb7e6b277006b1f4a5b914cfc
change-id: 20250304-vsock-linger-9026e5f9986c
Best regards,
Signature · 1 line
Michal Luczaj <[email protected]>