diff options
author | Tejun Heo <tj@kernel.org> | 2016-05-25 23:11:57 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-06-03 13:06:11 +0300 |
commit | ed8ebd1d514126c0e54fbdbd231427dc91c877c2 (patch) | |
tree | dc2ffc9e0c17ace6aaa11abe4e13cd7c04ba7f7c /fs/nls/nls_iso8859-1.c | |
parent | 6e2814745c67ab422b86262b05e6f23a56f28aa3 (diff) | |
download | linux-ed8ebd1d514126c0e54fbdbd231427dc91c877c2.tar.xz |
percpu, locking: Revert ("percpu: Replace smp_read_barrier_depends() with lockless_dereference()")
lockless_dereference() is planned to grow a sanity check to ensure
that the input parameter is a pointer. __ref_is_percpu() passes in an
unsinged long value which is a combination of a pointer and a flag.
While it can be casted to a pointer lvalue, the casting looks messy
and it's a special case anyway. Let's revert back to open-coding
READ_ONCE() and explicit barrier.
This doesn't cause any functional changes.
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Paul McKenney <paulmck@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Pranith Kumar <bobby.prani@gmail.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: kernel-team@fb.com
Link: http://lkml.kernel.org/g/20160522185040.GA23664@p183.telecom.by
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'fs/nls/nls_iso8859-1.c')
0 files changed, 0 insertions, 0 deletions