summaryrefslogtreecommitdiff
path: root/drivers/vhost
diff options
context:
space:
mode:
authorStefano Garzarella <sgarzare@redhat.com>2019-07-05 14:04:53 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-10-07 09:00:05 +0300
commit6a5a7a88cc6f587e2119bbfbd8299ba31e5ac9d8 (patch)
tree6cc1f7144f89e5bb80db7ab0c0aedea492235af5 /drivers/vhost
parent1fa81b7cadc479924412de67e5737d45b00e01ac (diff)
downloadlinux-6a5a7a88cc6f587e2119bbfbd8299ba31e5ac9d8.tar.xz
vsock/virtio: stop workers during the .remove()
[ Upstream commit 17dd1367389cfe7f150790c83247b68e0c19d106 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/vhost')
0 files changed, 0 insertions, 0 deletions