Commit 49999ab2 authored by Ian Kent's avatar Ian Kent Committed by Linus Torvalds
Browse files

autofs4 - fix reset pending flag on mount fail

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: default avatarIan Kent <>
Signed-off-by: default avatarLinus Torvalds <>
parent 14ffe009
......@@ -392,10 +392,12 @@ static struct vfsmount *autofs4_d_automount(struct path *path)
ino->flags |= AUTOFS_INF_PENDING;
status = autofs4_mount_wait(dentry);
if (status)
return ERR_PTR(status);
ino->flags &= ~AUTOFS_INF_PENDING;
if (status) {
return ERR_PTR(status);
if (!(ino->flags & AUTOFS_INF_EXPIRING)) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment