Re: [PATCH] tracing: Fix simple_ring_buffer writer moving onto the reader page

From: Andrea Parri

Date: Fri Dec 04 2026 - 13:14:43 EST


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