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