We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 512c0cd commit 4c6b974Copy full SHA for 4c6b974
drivers/vdpa/mlx5/core/mr.c
@@ -590,11 +590,19 @@ int mlx5_vdpa_update_cvq_iotlb(struct mlx5_vdpa_dev *mvdev,
590
struct vhost_iotlb *iotlb,
591
unsigned int asid)
592
{
593
+ int err;
594
+
595
if (mvdev->group2asid[MLX5_VDPA_CVQ_GROUP] != asid)
596
return 0;
597
598
+ spin_lock(&mvdev->cvq.iommu_lock);
599
600
prune_iotlb(mvdev);
- return dup_iotlb(mvdev, iotlb);
601
+ err = dup_iotlb(mvdev, iotlb);
602
603
+ spin_unlock(&mvdev->cvq.iommu_lock);
604
605
+ return err;
606
}
607
608
int mlx5_vdpa_create_dma_mr(struct mlx5_vdpa_dev *mvdev)
0 commit comments