]> Git Repo - linux.git/commit
autofs: use path_is_mountpoint() to fix unreliable d_mountpoint() checks
authorIan Kent <[email protected]>
Wed, 23 Nov 2016 21:03:42 +0000 (08:03 +1100)
committerAl Viro <[email protected]>
Sun, 4 Dec 2016 01:51:48 +0000 (20:51 -0500)
commitcfaf86ab6ccdf0acf47ebe474a4a844114bc0e10
treed78bb1593f84e1948f86c5323fcdb888e9991b16
parentdd36a882e7ade2c642f8711426ad8e4b7009aaae
autofs: use path_is_mountpoint() to fix unreliable d_mountpoint() 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_is_mountpoint()
instead of d_mountpoint() so we don't get false positives when checking if
a dentry is a mount point 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]>
fs/autofs4/root.c
This page took 0.053096 seconds and 4 git commands to generate.