Re: [PATCH] Support lockref reference count if enable LOCK_STAT
From: Andrew Morton
Date: Thu Nov 14 2024 - 19:14:14 EST
On Wed, 13 Nov 2024 16:57:03 +0800 yongli-oc <yongli-oc@xxxxxxxxxxx> wrote:
> Swap the positions of lock and count to support CMPXCHG_LOCKREF
> if SPINLOCK_SIZE > 4 when enable LOCK_STAT. The reference count
> can always be used regardless of the spinlock_t size.
Please fully describe the problem we're solving here? And what are the
runtime effects of this change?