diff options
| author | Ian Kent <[email protected]> | 2016-11-23 21:03:42 +0000 |
|---|---|---|
| committer | Al Viro <[email protected]> | 2016-12-04 01:51:49 +0000 |
| commit | 60359741473438f66fef7297d1fa2435640dbe79 (patch) | |
| tree | 3316c740550e8bd1ddc441385517e28d96e5468e /net/lapb/lapb_iface.c | |
| parent | autofs: use path_is_mountpoint() to fix unreliable d_mountpoint() checks (diff) | |
| download | kernel-60359741473438f66fef7297d1fa2435640dbe79.tar.gz kernel-60359741473438f66fef7297d1fa2435640dbe79.zip | |
autofs: use path_has_submounts() to fix unreliable have_submount() checks
If an automount mount is clone(2)ed into a file system that is propagation
private, when it later expires in the originating namespace, subsequent
calls to autofs ->d_automount() for that dentry in the original namespace
will return ELOOP until the mount is umounted in the cloned namespace.
Now that a struct path is available where needed use path_has_submounts()
instead of have_submounts() so we don't get false positives when checking
if a dentry is a mount point or contains mounts in the current namespace.
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ian Kent <[email protected]>
Cc: Al Viro <[email protected]>
Cc: Eric W. Biederman <[email protected]>
Cc: Omar Sandoval <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Al Viro <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions
