diff options
| author | Michal Luczaj <[email protected]> | 2025-05-21 23:18:22 +0000 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2025-05-27 09:05:21 +0000 |
| commit | 5ec40864aaecc4bd66fe67541d4a41091ed664a5 (patch) | |
| tree | 2385f434eeb0f735e308b4f3c0ca2078e989f5eb /lib/netdev-notifier-error-inject.c | |
| parent | vsock/virtio: Linger on unsent data (diff) | |
| download | kernel-5ec40864aaecc4bd66fe67541d4a41091ed664a5.tar.gz kernel-5ec40864aaecc4bd66fe67541d4a41091ed664a5.zip | |
vsock: Move lingering logic to af_vsock core
Lingering should be transport-independent in the long run. In preparation
for supporting other transports, as well as the linger on shutdown(), move
code to core.
Generalize by querying vsock_transport::unsent_bytes(), guard against the
callback being unimplemented. Do not pass sk_lingertime explicitly. Pull
SOCK_LINGER check into vsock_linger().
Flatten the function. Remove the nested block by inverting the condition:
return early on !timeout.
Suggested-by: Stefano Garzarella <[email protected]>
Reviewed-by: Stefano Garzarella <[email protected]>
Signed-off-by: Michal Luczaj <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions
