]> git.itanic.dy.fi Git - linux-stable/commit
autofs4 - fix reset pending flag on mount fail
authorIan Kent <raven@themaw.net>
Thu, 11 Oct 2012 00:00:33 +0000 (08:00 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 21 Oct 2012 16:17:10 +0000 (09:17 -0700)
commit3a738a8aa3dd4fae6998b4cbc7a1043f44086035
tree7b89c02a0ef9faf17599615b09e163f228136c08
parent2101aa5bb084931f22fa08cacd6d69c80afade7f
autofs4 - fix reset pending flag on mount fail

commit 49999ab27eab6289a8e4f450e148bdab521361b2 upstream.

In autofs4_d_automount(), if a mount fail occurs the AUTOFS_INF_PENDING
mount pending flag is not cleared.

One effect of this is when using the "browse" option, directory entry
attributes show up with all "?"s due to the incorrect callback and
subsequent failure return (when in fact no callback should be made).

Signed-off-by: Ian Kent <ikent@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/autofs4/root.c