Re: [PATCH 0/4] ucount: Simplify refcounting with rcuref_t.

2025-02-07 Thread Sebastian Andrzej Siewior
On 2025-02-03 16:05:21 [+0100], To linux-kernel@vger.kernel.org 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. > Thi

Re: [PATCH 0/4] ucount: Simplify refcounting with rcuref_t.

2025-02-03 Thread Paul E. McKenney
On Mon, Feb 03, 2025 at 04:05:21PM +0100, Sebastian Andrzej Siewior 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. >

[PATCH 0/4] ucount: Simplify refcounting with rcuref_t.

2025-02-03 Thread Sebastian Andrzej Siewior
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 cmp