diff --git a/fs/autofs4/root.c b/fs/autofs4/root.c index 230bd2aad4f4e740ef31d2ebf81855016993d673..9bd16255dd9cd631371acf3ed3ec276682ded828 100644 --- a/fs/autofs4/root.c +++ b/fs/autofs4/root.c @@ -383,8 +383,10 @@ static struct vfsmount *autofs4_d_automount(struct path *path) goto done; } } else { - if (!simple_empty(dentry)) + if (!simple_empty(dentry)) { + spin_unlock(&sbi->fs_lock); goto done; + } } ino->flags |= AUTOFS_INF_PENDING; spin_unlock(&sbi->fs_lock);