overlayfs: barriers for opening upper-layer directory
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 28 Oct 2014 22:27:28 +0000 (18:27 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 28 Oct 2014 22:27:28 +0000 (18:27 -0400)
commitd45f00ae43e63eff1b3d79df20610ae1ef645ebd
tree49b273720e044e74116a2d98668a11aac49a3214
parent54ef6df3f3f1353d99c80c437259d317b2cd1cbd
overlayfs: barriers for opening upper-layer directory

make sure that
a) all stores done by opening struct file don't leak past storing
the reference in od->upperfile
b) the lockless side has read dependency barrier

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/overlayfs/readdir.c