62e8a3258b
This patch makes sure that atomic_{read,set}() are at least {READ,WRITE}_ONCE(). We already had the 'requirement' that atomic_read() should use ACCESS_ONCE(), and most archs had this, but a few were lacking. All are now converted to use READ_ONCE(). And, by a symmetry and general paranoia argument, upgrade atomic_set() to use WRITE_ONCE(). Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Dmitry Vyukov <dvyukov@google.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: james.hogan@imgtec.com Cc: linux-kernel@vger.kernel.org Cc: oleg@redhat.com Cc: will.deacon@arm.com Signed-off-by: Ingo Molnar <mingo@kernel.org> |
||
---|---|---|
.. | ||
Kbuild | ||
addrspace.h | ||
asm-offsets.h | ||
asm.h | ||
atomic.h | ||
barrier.h | ||
bitops.h | ||
bug.h | ||
bugs.h | ||
cache.h | ||
cacheflush.h | ||
checksum.h | ||
cmpxchg.h | ||
current.h | ||
dma-mapping.h | ||
dma.h | ||
elf.h | ||
fb.h | ||
ftrace.h | ||
gpio.h | ||
hardirq.h | ||
hw_irq.h | ||
io.h | ||
irq.h | ||
irqflags.h | ||
kdebug.h | ||
kmap_types.h | ||
kprobes.h | ||
linkage.h | ||
mmu.h | ||
mmu_context.h | ||
module.h | ||
mutex.h | ||
ocd.h | ||
page.h | ||
pci.h | ||
pgalloc.h | ||
pgtable-2level.h | ||
pgtable.h | ||
processor.h | ||
ptrace.h | ||
serial.h | ||
setup.h | ||
shmparam.h | ||
signal.h | ||
string.h | ||
switch_to.h | ||
syscalls.h | ||
sysreg.h | ||
termios.h | ||
thread_info.h | ||
timex.h | ||
tlb.h | ||
tlbflush.h | ||
traps.h | ||
types.h | ||
uaccess.h | ||
ucontext.h | ||
unaligned.h | ||
unistd.h | ||
user.h |