[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <d0c0ae41-e0c6-4c90-9dbe-3b10a20a992e@huawei.com>
Date: Wed, 14 Jan 2026 00:36:15 +0300
From: Stepanov Anatoly <stepanov.anatoly@...wei.com>
To: <peterz@...radead.org>, <boqun.feng@...il.com>, <longman@...hat.com>,
<catalin.marinas@....com>, <will@...nel.org>, <mingo@...hat.com>,
<bp@...en8.de>, <dave.hansen@...ux.intel.com>, <x86@...nel.org>,
<hpa@...or.com>, <arnd@...db.de>, <dvhart@...radead.org>,
<dave@...olabs.net>, <andrealmeid@...lia.com>
CC: <linux-kernel@...r.kernel.org>, <linux-arch@...r.kernel.org>,
<guohanjun@...wei.com>, <wangkefeng.wang@...wei.com>,
<weiyongjun1@...wei.com>, <yusongping@...wei.com>, <leijitang@...wei.com>,
<artem.kuzin@...wei.com>, <fedorov.nikita@...artners.com>,
<kang.sun@...wei.com>
Subject: Re: [RFC PATCH v2 5/5] kernel: futex: use HQ-spinlock for
hash-buckets
On 12/6/2025 9:21 AM, Anatoly Stepanov wrote:
> This is example of HQ-spinlock enabled for futex hash-table bucket locks
> (used in memcached testing scenario)
>
> Signed-off-by: Anatoly Stepanov <stepanov.anatoly@...wei.com>
>
> Co-authored-by: Stepanov Anatoly <stepanov.anatoly@...wei.com>
> Co-authored-by: Fedorov Nikita <fedorov.nikita@...artners.com>
> ---
> kernel/futex/core.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/kernel/futex/core.c b/kernel/futex/core.c
> index 125804fbb..05c6d1efc 100644
> --- a/kernel/futex/core.c
> +++ b/kernel/futex/core.c
> @@ -1521,7 +1521,7 @@ static void futex_hash_bucket_init(struct futex_hash_bucket *fhb,
> #endif
> atomic_set(&fhb->waiters, 0);
> plist_head_init(&fhb->chain);
> - spin_lock_init(&fhb->lock);
> + spin_lock_init_hq(&fhb->lock);
> }
>
> #define FH_CUSTOM 0x01
Hello,
gentle ping regarding the RFC
--
Anatoly Stepanov, Huawei
Powered by blists - more mailing lists