autofs4 - fix reset pending flag on mount fail
authorIan Kent <raven@themaw.net>
Thu, 11 Oct 2012 00:00:33 +0000 (08:00 +0800)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 17 Oct 2012 02:49:49 +0000 (03:49 +0100)
commitb7a9b74916d8e7ef5ac4970a71cdf411ae1286c8
tree7121198fd654b747081ad29b98b2203ed9a1f91b
parente69e19924bdbfb7a44ac64c206d5cbcae57910ed
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: Ben Hutchings <ben@decadent.org.uk>
fs/autofs4/root.c