On Wed Jan 7, 2026 at 2:44 PM CET, Tvrtko Ursulin wrote: > While at it, we add READ_ONCE annotation on the entity->stopped check to > mark the unlocked read.
READ_ONCE() is not about marking unlocked reads and does not guarantee atomicity. Instead, it is about compiler control, i.e. forcing loads, and, depending on the architecture, deal with address and control dependency barriers. If we want lockless access to entity->stopped it should be atomic_read(), atomic_read_acquire(), etc. - Danilo
