summaryrefslogtreecommitdiffstats
path: root/fs/pnode.h
diff options
context:
space:
mode:
authorEric W. Biederman2014-12-24 14:35:10 +0100
committerEric W. Biederman2015-04-03 03:34:17 +0200
commit8318e667f176f7ea34451a1a530634e293f216ac (patch)
tree33fd107b9cddaf6208e8d6b916cf2bd664b274c1 /fs/pnode.h
parentmnt: Improve the umount_tree flags (diff)
downloadkernel-qcow2-linux-8318e667f176f7ea34451a1a530634e293f216ac.tar.gz
kernel-qcow2-linux-8318e667f176f7ea34451a1a530634e293f216ac.tar.xz
kernel-qcow2-linux-8318e667f176f7ea34451a1a530634e293f216ac.zip
mnt: Don't propagate umounts in __detach_mounts
Invoking mount propagation from __detach_mounts is inefficient and wrong. It is inefficient because __detach_mounts already walks the list of mounts that where something needs to be done, and mount propagation walks some subset of those mounts again. It is actively wrong because if the dentry that is passed to __detach_mounts is not part of the path to a mount that mount should not be affected. change_mnt_propagation(p,MS_PRIVATE) modifies the mount propagation tree of a master mount so it's slaves are connected to another master if possible. Which means even removing a mount from the middle of a mount tree with __detach_mounts will not deprive any mount propagated mount events. Cc: stable@vger.kernel.org Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'fs/pnode.h')
0 files changed, 0 insertions, 0 deletions