Re: [RFC PATCH] ring-buffer: Fix and comment ring buffer rb_time functions on 32-bit
From: Steven Rostedt
Date: Mon Dec 11 2023 - 18:13:15 EST
On Mon, 11 Dec 2023 17:59:04 -0500
Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:
> >
> > - A cmpxchg interrupted by 4 writes or cmpxchg overflows the counter
> > and produces corrupted time stamps. This is _not_ fixed by this patch.
>
> Except that it's not 4 bits that is compared, but 32 bits.
That should be "not 2 bits", as in "shave and a hair cut!" ;-)
-- Steve