On 16/07/2020 11:06, Jan Beulich wrote: > ACCESS_ONCE() guarantees single access, but doesn't guarantee that > the compiler wouldn't split this single access into multiple insns.
ACCESS_ONCE() does guarantee single accesses for any natural integer size. There is a section about this specifically in Linux's memory-barriers.txt, and this isn't the first time I've pointed it out... ~Andrew