On Wed, Jun 18, 2025 at 08:08:22PM +0300, Dmitry Antipov wrote: > On 6/18/25 6:20 PM, Jan Kara wrote: > > > So KCSAN is really trigger-happy about issues like this. There's no > > practical issue here because it is hard to imagine how the compiler could > > compile the above code using some intermediate values stored into > > 'triggered' or multiple fetches from 'triggered'. But for the cleanliness > > of code and silencing of KCSAN your changes make sense. > > Thanks. Surely I've read Documentation/memory-barriers.txt more than > once, but, just for this particual case: is _ONCE() pair from the above > expected to work in the same way as: It's fine for this case.