diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2014-12-24 07:35:10 -0600 |
---|---|---|
committer | Sasha Levin <sasha.levin@oracle.com> | 2015-05-17 19:12:08 -0400 |
commit | 1c1cf82e193a887f37672b0d7b2657c76613ee16 (patch) | |
tree | 2466f6a89325c3bc9baad7368f8375c6d2509bd4 /tools/perf | |
parent | 6b1353cb2664c93997561fa4f46f055da51f5ee7 (diff) | |
download | lwn-1c1cf82e193a887f37672b0d7b2657c76613ee16.tar.gz lwn-1c1cf82e193a887f37672b0d7b2657c76613ee16.zip |
mnt: Don't propagate umounts in __detach_mounts
[ Upstream commit 8318e667f176f7ea34451a1a530634e293f216ac ]
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>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Diffstat (limited to 'tools/perf')
0 files changed, 0 insertions, 0 deletions