Re: [PATCH] iommu/sva: remove iommu_sva_present flag
From: Baolu Lu
Date: Tue Sep 01 2026 - 21:43:05 EST
On 8/23/2026 5:24 PM, Zhaoyu Liu wrote:
The global iommu_sva_present bool merely mirrors
!list_empty(&iommu_sva_mms) under the same mutex. Remove it and rely
on list_for_each_entry to handle the empty list case, which is a no-op.
Signed-off-by: Zhaoyu Liu<liuzhaoyu.zackary@xxxxxxxxxxxxx>
---
drivers/iommu/iommu-sva.c | 14 +++-----------
1 file changed, 3 insertions(+), 11 deletions(-)
Reviewed-by: Lu Baolu <baolu.lu@xxxxxxxxxxxxxxx>