Re: [PATCH] iommu/sva: remove iommu_sva_present flag

From: Zhaoyu Liu

Date: Mon Sep 14 2026 - 02:31:05 EST


Thank you, Baolu.

One more thing — do you know why the maintainers haven't noticed / responded to this patch?
Jason, Baolu, are you able to contact them directly?

Thanks,
zackary

On Wed, Sep 02, 2026 at 09:37:00AM +0800, Baolu Lu wrote:
> 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>