OSDN Git Service

vhost_vdpa: remove unnecessary spin_lock in vhost_vring_call
authorZhu Lingshan <lingshan.zhu@intel.com>
Wed, 9 Sep 2020 06:52:34 +0000 (14:52 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 21 Oct 2020 14:48:10 +0000 (10:48 -0400)
commit86e182fe12ee5869022614457037097c70fe2ed1
tree1ad7af0a73787d36f2711762a39bdf633d9dff86
parent5745bcfbbf89b158416075374254d3c013488f21
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>
drivers/vhost/vdpa.c
drivers/vhost/vhost.c
drivers/vhost/vhost.h