diff options
author | 2019-07-05 13:04:53 +0200 | |
---|---|---|
committer | 2019-07-08 15:35:17 -0700 | |
commit | b917507e5ad983085d29069369778b16aa03a0a8 (patch) | |
tree | 7c57a813d92e56e322a09fa3b9cf4cdfd2dd1af5 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | vsock/virtio: use RCU to avoid use-after-free on the_virtio_vsock (diff) | |
download | wireguard-linux-b917507e5ad983085d29069369778b16aa03a0a8.tar.xz wireguard-linux-b917507e5ad983085d29069369778b16aa03a0a8.zip |
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions