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)
commit6773b7dc39f165bd9d824b50ac52cbb3f87d53c8
treeeec9a1d84ed6d1c3113cd35c47887d6dd42d4448
parent0b01aeb3d2fbf16787f0c9629f4ca52ae792f732
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