All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrea Parri <parri.andrea@gmail.com>
To: Vincent Donnefort <vdonnefort@google.com>
Cc: Steven Rostedt <rostedt@goodmis.org>,
	Masami Hiramatsu <mhiramat@kernel.org>,
	Mathieu Desnoyers <mathieu.desnoyers@efficios.com>,
	linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org,
	kvmarm@lists.linux.dev
Subject: Re: [PATCH] tracing: Fix simple_ring_buffer writer moving onto the reader page
Date: Fri,  4 Dec 2026 19:10:01 +0100	[thread overview]
Message-ID: <20261204181002.139529-1-parri.andrea@gmail.com> (raw)
In-Reply-To: <axL-tr9eWxTJAV_0@google.com>

On Fri, Dec 04, 2026 at 05:56:06PM +0000, Vincent Donnefort wrote:
> On Fri, Dec 04, 2026 at 05:46:08PM +0100, Andrea Parri wrote:
> > simple_rb_move_tail() loads the page after the tail and, if it is the
> > head, moves the HEAD flag past it with a cmpxchg() on tail->link.next.

[...]

> Could you replace this with a concise, human-readable commit message without all
> the unnecessary churn, so this is actually reviewable?

Sure, I'll send a v2 with a short changelog.

> > C simple-rb-move-tail-reload-once
>
> Why do we need this if remote_test is enough to reproduce the issue?

We don't.  It only modelled why the READ_ONCE() reload needs no extra
barrier; I'll drop it from v2.

Thanks,
Andrea

      reply	other threads:[~2026-12-04 18:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04 16:46 [PATCH] tracing: Fix simple_ring_buffer writer moving onto the reader page Andrea Parri
2026-12-04 17:56 ` Vincent Donnefort
2026-12-04 18:10   ` Andrea Parri [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=20261204181002.139529-1-parri.andrea@gmail.com \
    --to=parri.andrea@gmail.com \
    --cc=kvmarm@lists.linux.dev \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-trace-kernel@vger.kernel.org \
    --cc=mathieu.desnoyers@efficios.com \
    --cc=mhiramat@kernel.org \
    --cc=rostedt@goodmis.org \
    --cc=vdonnefort@google.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.