diff options
author | Zhu Lingshan <lingshan.zhu@intel.com> | 2020-09-09 08:52:34 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2020-10-21 16:48:10 +0200 |
commit | 86e182fe12ee5869022614457037097c70fe2ed1 (patch) | |
tree | 1ad7af0a73787d36f2711762a39bdf633d9dff86 /drivers/vhost/vhost.h | |
parent | vringh: fix __vringh_iov() when riov and wiov are different (diff) | |
download | linux-86e182fe12ee5869022614457037097c70fe2ed1.tar.xz linux-86e182fe12ee5869022614457037097c70fe2ed1.zip |
vhost_vdpa: remove unnecessary spin_lock in vhost_vring_call
This commit removed unnecessary spin_locks in vhost_vring_call
and related operations. Because we manipulate irq offloading
contents in vhost_vdpa ioctl code path which is already
protected by dev mutex and vq mutex.
Signed-off-by: Zhu Lingshan <lingshan.zhu@intel.com>
Link: https://lore.kernel.org/r/20200909065234.3313-1-lingshan.zhu@intel.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'drivers/vhost/vhost.h')
-rw-r--r-- | drivers/vhost/vhost.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/vhost/vhost.h b/drivers/vhost/vhost.h index 5fe4b478c215..e016cd3fa02f 100644 --- a/drivers/vhost/vhost.h +++ b/drivers/vhost/vhost.h @@ -64,7 +64,6 @@ enum vhost_uaddr_type { struct vhost_vring_call { struct eventfd_ctx *ctx; struct irq_bypass_producer producer; - spinlock_t ctx_lock; }; /* The virtqueue structure describes a queue attached to a device. */ |