public inbox for linux-arch@vger.kernel.org
 help / color / mirror / Atom feed
From: Stepanov Anatoly <stepanov.anatoly@huawei.com>
To: <peterz@infradead.org>, <boqun.feng@gmail.com>,
	<longman@redhat.com>, <catalin.marinas@arm.com>,
	<will@kernel.org>, <mingo@redhat.com>, <bp@alien8.de>,
	<dave.hansen@linux.intel.com>, <x86@kernel.org>, <hpa@zytor.com>,
	<arnd@arndb.de>, <dvhart@infradead.org>, <dave@stgolabs.net>,
	<andrealmeid@igalia.com>
Cc: <linux-kernel@vger.kernel.org>, <linux-arch@vger.kernel.org>,
	<guohanjun@huawei.com>, <wangkefeng.wang@huawei.com>,
	<weiyongjun1@huawei.com>, <yusongping@huawei.com>,
	<leijitang@huawei.com>, <artem.kuzin@huawei.com>,
	<fedorov.nikita@h-partners.com>, <kang.sun@huawei.com>
Subject: Re: [RFC PATCH v2 5/5] kernel: futex: use HQ-spinlock for hash-buckets
Date: Wed, 14 Jan 2026 00:36:15 +0300	[thread overview]
Message-ID: <d0c0ae41-e0c6-4c90-9dbe-3b10a20a992e@huawei.com> (raw)
In-Reply-To: <20251206062106.2109014-6-stepanov.anatoly@huawei.com>

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@huawei.com>
> 
> Co-authored-by: Stepanov Anatoly <stepanov.anatoly@huawei.com>
> Co-authored-by: Fedorov Nikita <fedorov.nikita@h-partners.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

      reply	other threads:[~2026-01-13 21:36 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-28  3:26 [RFC PATCH 0/1] Introduce Hierarchical Queued NUMA-aware spinlock Anatoly Stepanov
2025-11-28  3:26 ` [RFC PATCH 1/1] HQspinlock - (NUMA-aware) Hierarchical Queued spinlock Anatoly Stepanov
2025-11-30 16:39   ` Waiman Long
2025-12-01 18:28     ` Stepanov Anatoly
2025-11-30 16:04 ` [RFC PATCH 0/1] Introduce Hierarchical Queued NUMA-aware spinlock Waiman Long
2025-12-01 15:22   ` Stepanov Anatoly
2025-12-01 18:44   ` Stepanov Anatoly
2025-12-06  6:21   ` [RFC PATCH v2 0/5] " Anatoly Stepanov
2025-12-06  6:21     ` [RFC PATCH v2 1/5] kernel: introduce Hierarchical Queued spinlock Anatoly Stepanov
2025-12-06  6:21     ` [RFC PATCH v2 2/5] hq-spinlock: proc tunables and debug stats Anatoly Stepanov
2025-12-06  6:21     ` [RFC PATCH v2 3/5] kernel: introduce general hq-lock support Anatoly Stepanov
2025-12-06  6:21     ` [RFC PATCH v2 4/5] lockref: use hq-spinlock Anatoly Stepanov
2025-12-06  6:21     ` [RFC PATCH v2 5/5] kernel: futex: use HQ-spinlock for hash-buckets Anatoly Stepanov
2026-01-13 21:36       ` Stepanov Anatoly [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d0c0ae41-e0c6-4c90-9dbe-3b10a20a992e@huawei.com \
    --to=stepanov.anatoly@huawei.com \
    --cc=andrealmeid@igalia.com \
    --cc=arnd@arndb.de \
    --cc=artem.kuzin@huawei.com \
    --cc=boqun.feng@gmail.com \
    --cc=bp@alien8.de \
    --cc=catalin.marinas@arm.com \
    --cc=dave.hansen@linux.intel.com \
    --cc=dave@stgolabs.net \
    --cc=dvhart@infradead.org \
    --cc=fedorov.nikita@h-partners.com \
    --cc=guohanjun@huawei.com \
    --cc=hpa@zytor.com \
    --cc=kang.sun@huawei.com \
    --cc=leijitang@huawei.com \
    --cc=linux-arch@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=longman@redhat.com \
    --cc=mingo@redhat.com \
    --cc=peterz@infradead.org \
    --cc=wangkefeng.wang@huawei.com \
    --cc=weiyongjun1@huawei.com \
    --cc=will@kernel.org \
    --cc=x86@kernel.org \
    --cc=yusongping@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox