]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] autofs4: bad lookup fix
authorIan Kent <raven@themaw.net>
Wed, 22 Jun 2005 00:16:41 +0000 (17:16 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 22 Jun 2005 02:07:35 +0000 (19:07 -0700)
commit57eb7a73695a859f79cbfc06e3b0de4a7a431a99
tree2af8d8837b25f82e09cfe478a103779a3e98bfc4
parentdc4d5e573c429fb6d77707939c4105730dbb1c84
[PATCH] autofs4: bad lookup fix

For browsable autofs maps, a mount request that arrives at the same time an
expire is happening can fail to perform the needed mount.

This happens becuase the directory exists and so the revalidate succeeds when
we need it to fail so that lookup is called on the same dentry to do the
mount.  Instead lookup is called on the next path component which should be
whithin the mount, but the parent isn't mounted.

The solution is to allow the revalidate to continue and perform the mount as
no directory creation (at mount time) is needed for browsable mount entries.

Signed-off-by: Ian Kent <raven@themaw.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/autofs4/root.c