summaryrefslogtreecommitdiffstats
path: root/drivers/virtio/virtio_vdpa.c
diff options
context:
space:
mode:
authorEli Cohen <elic@nvidia.com>2022-01-05 12:46:35 +0100
committerMichael S. Tsirkin <mst@redhat.com>2022-01-15 00:50:53 +0100
commit73bc0dbb591baea322a7319c735e5f6c7dba9cfb (patch)
treea37442b71e81cf92ef849f36fe9be3fd4dfe476f /drivers/virtio/virtio_vdpa.c
parentvdpa/mlx5: Distribute RX virtqueues in RQT object (diff)
downloadlinux-73bc0dbb591baea322a7319c735e5f6c7dba9cfb.tar.xz
linux-73bc0dbb591baea322a7319c735e5f6c7dba9cfb.zip
vdpa: Sync calls set/get config/status with cf_mutex
Add wrappers to get/set status and protect these operations with cf_mutex to serialize these operations with respect to get/set config operations. Signed-off-by: Eli Cohen <elic@nvidia.com> Link: https://lore.kernel.org/r/20220105114646.577224-4-elic@nvidia.com Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/virtio/virtio_vdpa.c')
-rw-r--r--drivers/virtio/virtio_vdpa.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/virtio/virtio_vdpa.c b/drivers/virtio/virtio_vdpa.c
index a84b04ba3195..76504559bc25 100644
--- a/drivers/virtio/virtio_vdpa.c
+++ b/drivers/virtio/virtio_vdpa.c
@@ -91,9 +91,8 @@ static u8 virtio_vdpa_get_status(struct virtio_device *vdev)
static void virtio_vdpa_set_status(struct virtio_device *vdev, u8 status)
{
struct vdpa_device *vdpa = vd_get_vdpa(vdev);
- const struct vdpa_config_ops *ops = vdpa->config;
- return ops->set_status(vdpa, status);
+ return vdpa_set_status(vdpa, status);
}
static void virtio_vdpa_reset(struct virtio_device *vdev)