aboutsummaryrefslogtreecommitdiffstats
path: root/fs/autofs4
diff options
context:
space:
mode:
Diffstat (limited to 'fs/autofs4')
-rw-r--r--fs/autofs4/root.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/fs/autofs4/root.c b/fs/autofs4/root.c
index 324290c68275..1e901e5ea013 100644
--- a/fs/autofs4/root.c
+++ b/fs/autofs4/root.c
@@ -686,12 +686,11 @@ static struct dentry *autofs4_lookup(struct inode *dir, struct dentry *dentry, s
686 spin_lock(&dentry->d_lock); 686 spin_lock(&dentry->d_lock);
687 dentry->d_flags |= DCACHE_AUTOFS_PENDING; 687 dentry->d_flags |= DCACHE_AUTOFS_PENDING;
688 spin_unlock(&dentry->d_lock); 688 spin_unlock(&dentry->d_lock);
689 } 689 if (dentry->d_op && dentry->d_op->d_revalidate) {
690 690 mutex_unlock(&dir->i_mutex);
691 if (dentry->d_op && dentry->d_op->d_revalidate) { 691 (dentry->d_op->d_revalidate)(dentry, nd);
692 mutex_unlock(&dir->i_mutex); 692 mutex_lock(&dir->i_mutex);
693 (dentry->d_op->d_revalidate)(dentry, nd); 693 }
694 mutex_lock(&dir->i_mutex);
695 } 694 }
696 695
697 /* 696 /*