]> git.baikalelectronics.ru Git - kernel.git/commit
VSOCK: defer sock removal to transports
authorStefan Hajnoczi <stefanha@redhat.com>
Thu, 28 Jul 2016 14:36:31 +0000 (15:36 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 1 Aug 2016 23:57:28 +0000 (02:57 +0300)
commitb02e15e0549f7958bf8c915a090df0d8a7000bdd
treeeec9a1d84ed6d1c3113cd35c47887d6dd42d4448
parentc1f9b60d5646cc23ee6ba2b62c27a287274d7974
VSOCK: defer sock removal to transports

The virtio transport will implement graceful shutdown and the related
SO_LINGER socket option.  This requires orphaning the sock but keeping
it in the table of connections after .release().

This patch adds the vsock_remove_sock() function and leaves it up to the
transport when to remove the sock.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
include/net/af_vsock.h
net/vmw_vsock/af_vsock.c
net/vmw_vsock/vmci_transport.c