]> git.baikalelectronics.ru Git - kernel.git/commit
vsock/virtio: stop workers during the .remove()
authorStefano Garzarella <sgarzare@redhat.com>
Fri, 28 Jun 2019 12:36:58 +0000 (14:36 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Jul 2019 02:09:07 +0000 (19:09 -0700)
commitd0696a9198c259e84e16c3c28295ce9ed64f8d69
tree86a01960d5d6cece79f216448fac551e6affa9f5
parentf3670f9448b57e059b09bf7abfd99849cbc2ab82
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