]> git.baikalelectronics.ru Git - kernel.git/commit
locking/barriers: Add implicit smp_read_barrier_depends() to READ_ONCE()
authorWill Deacon <will.deacon@arm.com>
Tue, 24 Oct 2017 10:22:47 +0000 (11:22 +0100)
committerIngo Molnar <mingo@kernel.org>
Sun, 17 Dec 2017 12:57:01 +0000 (13:57 +0100)
commitad7ab26d2653edd6aab5ff2f285dcfbdf99697ed
tree6f2e6ad4fb90064a5b862a7591584ed5aa7884cf
parent1db46ee9e39738d9518637659595fc1d48cf909a
locking/barriers: Add implicit smp_read_barrier_depends() to READ_ONCE()

[ Note, this is a Git cherry-pick of the following commit:

    cbb34fed0b6a ("locking/barriers: Add implicit smp_read_barrier_depends() to READ_ONCE()")

  ... for easier x86 PTI code testing and back-porting. ]

In preparation for the removal of lockless_dereference(), which is the
same as READ_ONCE() on all architectures other than Alpha, add an
implicit smp_read_barrier_depends() to READ_ONCE() so that it can be
used to head dependency chains on all architectures.

Signed-off-by: Will Deacon <will.deacon@arm.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>
Link: http://lkml.kernel.org/r/1508840570-22169-3-git-send-email-will.deacon@arm.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/linux/compiler.h