Skip to content

Commit c04e214

Browse files
elic307imstsirkin
authored andcommitted
vdpa/mlx5: Initialize CVQ iotlb spinlock
Initialize itolb spinlock. Fixes: 5262912 ("vdpa/mlx5: Add support for control VQ and MAC setting") Signed-off-by: Eli Cohen <elic@nvidia.com> Message-Id: <20230206122016.1149373-1-elic@nvidia.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
1 parent aef2431 commit c04e214

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/vdpa/mlx5/core/resources.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ static int init_ctrl_vq(struct mlx5_vdpa_dev *mvdev)
233233
if (!mvdev->cvq.iotlb)
234234
return -ENOMEM;
235235

236+
spin_lock_init(&mvdev->cvq.iommu_lock);
236237
vringh_set_iotlb(&mvdev->cvq.vring, mvdev->cvq.iotlb, &mvdev->cvq.iommu_lock);
237238

238239
return 0;

0 commit comments

Comments
 (0)