Re: [PATCH v4 2/2] iommu/arm-smmu-v3: Improve CMDQ lock fairness and efficiency
From: Will Deacon
Date: Tue Dec 09 2025 - 22:12:18 EST
On Sun, Nov 30, 2025 at 02:52:36PM -0800, Jacob Pan wrote:
> On Tue, 25 Nov 2025 17:18:57 +0000
> Will Deacon <will@xxxxxxxxxx> wrote:
> > That aside, doesn't this introduce a new fairness issue in that a
> > steady stream of shared lockers will starve somebody trying to take
> > the lock in exclusive state?
> >
> I don't think this change will starve exclusive lockers in the
> current code flow since new shared locker must acquire exclusive locker
> first while polling for available queue spaces.
Looking at this again, we already have the same starvation problem in
that the lockword has to hit zero for the exclusive locker to succeed.
So my initial worry was unfounded.
Will