Re: [PATCH 0/6] tracing/ring-buffer: Fix wakeup of ring buffer waiters

From: Linus Torvalds
Date: Fri Mar 08 2024 - 16:42:26 EST


On Fri, 8 Mar 2024 at 13:39, Linus Torvalds
<torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
>
> So the above "complexity" is *literally* just changing the
>
> (new = atomic_read_acquire(&my->seq)) != old
>
> condition to
>
> should_exit ||
> (new = atomic_read_acquire(&my->seq)) != old

. and obviously you'll need to add the exit condition to the actual
"deal with events" loop too.

Linus