commit | 6773b7dc39f165bd9d824b50ac52cbb3f87d53c8 | [log] [tgz] |
---|---|---|
author | Stefan Hajnoczi <stefanha@redhat.com> | Thu Jul 28 15:36:31 2016 +0100 |
committer | Michael S. Tsirkin <mst@redhat.com> | Tue Aug 02 02:57:28 2016 +0300 |
tree | eec9a1d84ed6d1c3113cd35c47887d6dd42d4448 | |
parent | 0b01aeb3d2fbf16787f0c9629f4ca52ae792f732 [diff] |
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>