]> git.baikalelectronics.ru Git - kernel.git/commit
autofs4 - fix device ioctl mount lookup
authorIan Kent <raven@themaw.net>
Sun, 8 Sep 2013 08:47:23 +0000 (16:47 +0800)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 9 Sep 2013 02:07:47 +0000 (22:07 -0400)
commit4b0d1eee6fa64e6744444905d131758e2e2eefb0
tree0527b48b9293e395fda4048bedcd410cc802eda8
parentce4b9084c6cf28e7685aa3fd2817bcabda98467d
autofs4 - fix device ioctl mount lookup

When reconnecting to automounts at startup an autofs ioctl is used
to find the device and inode of existing mounts so they can be used
to open a file descriptor of possibly covered mounts.

At this time the the caller might not yet "own" the mount so it can
trigger calling ->d_automount(). This causes automount to hang when
trying to reconnect to direct or offset mount types.

Consequently kern_path() can't be used but kern_path_mountpoint() can be.

Signed-off-by: Ian Kent <raven@themaw.net>
Cc: Jeff Layton <jlayton@redhat.com>
Cc: Al Viro <viro@ZenIV.linux.org.uk>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/autofs4/dev-ioctl.c