mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
locking/barriers: Convert users of lockless_dereference() to READ_ONCE()
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 <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Paul E. McKenney <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
This commit is contained in:
parent
76ebbe78f7
commit
506458efaf
13 changed files with 27 additions and 27 deletions
|
|
@ -258,7 +258,7 @@ cache_from_memcg_idx(struct kmem_cache *s, int idx)
|
|||
* memcg_caches issues a write barrier to match this (see
|
||||
* memcg_create_kmem_cache()).
|
||||
*/
|
||||
cachep = lockless_dereference(arr->entries[idx]);
|
||||
cachep = READ_ONCE(arr->entries[idx]);
|
||||
rcu_read_unlock();
|
||||
|
||||
return cachep;
|
||||
|
|
|
|||
Loading…
Reference in a new issue