Re: [PATCH 0/4] ucount: Simplify refcounting with rcuref_t.
From: Sebastian Andrzej Siewior
Date: Fri Feb 07 2025 - 15:49:07 EST
On 2025-02-03 16:05:21 [+0100], To linux-kernel@xxxxxxxxxxxxxxx wrote:
> I noticed that the atomic_dec_and_lock_irqsave() in put_ucounts() loops
> sometimes even during boot. Something like 2-3 iterations but still.
> This series replaces the refcounting with rcuref_t and adds a RCU
> lookup.
> This allows a lockless lookup in alloc_ucounts() if the entry is
> available and a cmpxchg()less put of the item.
Andrew, could you please take this series?
Sebastian