Re: [PATCH] rcutorture: Fix rcu_torture_pipe_update_one()/rcu_torture_writer() data race and concurrency bug
From: Steven Rostedt
Date: Wed Mar 06 2024 - 13:53:22 EST
On Wed, 6 Mar 2024 10:43:25 -0800
Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
Thanks for the history lesson ;-)
> So yes, READ_ONCE/WRITE_ONCE do control "tearing", but realistically,
> it was always only about the "complex values" kind of tearing that the
> old ACCESS_ONCE() model silently and incorrectly allowed.
Now, are you OK with an addition of ADD_ONCE() and/or INC_ONCE()? So that we
don't have to look at:
WRITE_ONCE(a, READ_ONCE(a) + 1);
?
-- Steve