]> git.baikalelectronics.ru Git - kernel.git/commit
vsock/virtio: stop workers during the .remove()
authorStefano Garzarella <sgarzare@redhat.com>
Fri, 5 Jul 2019 11:04:53 +0000 (13:04 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Jul 2019 22:35:17 +0000 (15:35 -0700)
commitb8f83a6fc03def2c2568fda61f1855de4fe29c0b
tree7c57a813d92e56e322a09fa3b9cf4cdfd2dd1af5
parentcf16147a8a83f27b81c00502356805eb5a819888
vsock/virtio: stop workers during the .remove()

Before to call vdev->config->reset(vdev) we need to be sure that
no one is accessing the device, for this reason, we add new variables
in the struct virtio_vsock to stop the workers during the .remove().

This patch also add few comments before vdev->config->reset(vdev)
and vdev->config->del_vqs(vdev).

Suggested-by: Stefan Hajnoczi <stefanha@redhat.com>
Suggested-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/vmw_vsock/virtio_transport.c