locking/barriers: Convert users of lockless_dereference() to READ_ONCE()
authorWill Deacon <will.deacon@arm.com>
Tue, 24 Oct 2017 10:22:48 +0000 (11:22 +0100)
committerIngo Molnar <mingo@kernel.org>
Sun, 17 Dec 2017 12:57:15 +0000 (13:57 +0100)
commit3382290ed2d5e275429cef510ab21889d3ccd164
tree0993c387956cf3b6f802acf12a62b79cb94ece1a
parentc2bc66082e1048c7573d72e62f597bdc5ce13fea
locking/barriers: Convert users of lockless_dereference() to READ_ONCE()

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

    506458efaf15 ("locking/barriers: Convert users of lockless_dereference() to READ_ONCE()")

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

READ_ONCE() now has an implicit smp_read_barrier_depends() call, so it
can be used instead of lockless_dereference() without any change in
semantics.

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-4-git-send-email-will.deacon@arm.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
13 files changed:
arch/x86/events/core.c
arch/x86/include/asm/mmu_context.h
arch/x86/kernel/ldt.c
drivers/md/dm-mpath.c
fs/dcache.c
fs/overlayfs/ovl_entry.h
fs/overlayfs/readdir.c
include/linux/rculist.h
include/linux/rcupdate.h
kernel/events/core.c
kernel/seccomp.c
kernel/task_work.c
mm/slab.h