vsock/virtio: reset connected sockets on device removal
authorStefano Garzarella <sgarzare@redhat.com>
Fri, 1 Feb 2019 11:42:07 +0000 (12:42 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Mar 2019 21:05:00 +0000 (14:05 -0700)
commit4c870d3c4b3464503a713770bbd6fefde1f49e26
tree5f4c412b0b7f8ae06262d09f081e52cb43287662
parent5c9e72bfd09a53ea1b5b71fc5b84e09bacc9a975
vsock/virtio: reset connected sockets on device removal

[ Upstream commit 85965487abc540368393a15491e6e7fcd230039d ]

When the virtio transport device disappear, we should reset all
connected sockets in order to inform the users.

Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/vmw_vsock/virtio_transport.c