aboutsummaryrefslogtreecommitdiffstats
path: root/fs/autofs4/root.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/autofs4/root.c')
-rw-r--r--fs/autofs4/root.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/autofs4/root.c b/fs/autofs4/root.c
index 2241405ffc41..541b19e6fec9 100644
--- a/fs/autofs4/root.c
+++ b/fs/autofs4/root.c
@@ -489,9 +489,9 @@ static struct dentry *autofs4_lookup(struct inode *dir, struct dentry *dentry, s
489 d_add(dentry, NULL); 489 d_add(dentry, NULL);
490 490
491 if (dentry->d_op && dentry->d_op->d_revalidate) { 491 if (dentry->d_op && dentry->d_op->d_revalidate) {
492 up(&dir->i_sem); 492 mutex_unlock(&dir->i_mutex);
493 (dentry->d_op->d_revalidate)(dentry, nd); 493 (dentry->d_op->d_revalidate)(dentry, nd);
494 down(&dir->i_sem); 494 mutex_lock(&dir->i_mutex);
495 } 495 }
496 496
497 /* 497 /*