overlayfs, locking: Remove smp_mb__before_spinlock() usage
authorPeter Zijlstra <[email protected]>
Wed, 7 Jun 2017 15:43:46 +0000 (17:43 +0200)
committerIngo Molnar <[email protected]>
Thu, 10 Aug 2017 10:29:02 +0000 (12:29 +0200)
commitff7a5fb0f1d510997a845e0d227f30831ff38d9d
tree0dd4a272103f78b133f240c7c554f7942c9c042d
parent8b1b436dd1ccc8a1770af6e56eec047ad4920659
overlayfs, locking: Remove smp_mb__before_spinlock() usage

While we could replace the smp_mb__before_spinlock() with the new
smp_mb__after_spinlock(), the normal pattern is to use
smp_store_release() to publish an object that is used for
lockless_dereference() -- and mirrors the regular rcu_assign_pointer()
/ rcu_dereference() patterns.

Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Al Viro <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
fs/overlayfs/readdir.c