mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Tiezhu Yang <yangtiezhu@loongson.cn>
To: Alexei Starovoitov <alexei.starovoitov@gmail.com>,
	Vlastimil Babka <vbabka@kernel.org>, Harry Yoo <harry@kernel.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	Hao Li <hao.li@linux.dev>, Christoph Lameter <cl@gentwo.org>,
	David Rientjes <rientjes@google.com>,
	Roman Gushchin <roman.gushchin@linux.dev>
Cc: linux-mm@kvack.org, loongarch@lists.linux.dev,
	bpf@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] mm/slub: Genericize x86-specific cmpxchg16b comment
Date: Tue, 10 Nov 2026 09:29:04 +0800	[thread overview]
Message-ID: <145c23ea-bc4d-b235-c822-df94b00a647a@loongson.cn> (raw)
In-Reply-To: <DMQW32TTNOPX.24GN6Q7VI6QJR@gmail.com>

On 11/10/26 2:25 AM, Alexei Starovoitov wrote:
> On Sun, Nov 08, 2026 at 07:59 PM Tiezhu Yang <yangtiezhu@loongson.cn> wrote:
>> atomic primitive is satisfied by different hardware implementations:
>> (1) arm64: satisfies it via LSE atomics ('casp' instruction)
> [...]
>> Update the comment to "double-width atomic cmpxchg", which provides the
>> following advantages:
>> (1) Accurately describes the cross-platform hardware invariant.
> 
> You ignored Hao's point about shorter commit logs.

If the following shorter commit message is preferred:

   mm/slub: Genericize x86-specific cmpxchg16b comment

   In __kmalloc_nolock_noprof(), update the comment from x86-specific
   "cmpxchg16b" to generic "double-width atomic cmpxchg".

I will wait for a while for more feedback from mm maintainers and send
v3 if necessary.

Thanks,
Tiezhu


      reply	other threads:[~2026-11-10  1:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-09  3:59 Tiezhu Yang
2026-11-09 18:25 ` Alexei Starovoitov
2026-11-10  1:29   ` Tiezhu Yang [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=145c23ea-bc4d-b235-c822-df94b00a647a@loongson.cn \
    --to=yangtiezhu@loongson.cn \
    --cc=akpm@linux-foundation.org \
    --cc=alexei.starovoitov@gmail.com \
    --cc=bpf@vger.kernel.org \
    --cc=cl@gentwo.org \
    --cc=hao.li@linux.dev \
    --cc=harry@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=loongarch@lists.linux.dev \
    --cc=rientjes@google.com \
    --cc=roman.gushchin@linux.dev \
    --cc=vbabka@kernel.org \
    /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

all inboxes | Powered by JetHome®