From b901932ddf1f7c15de1a034bca995567b828b93a Mon Sep 17 00:00:00 2001 From: Ian Kent Date: Wed, 23 Jul 2008 21:30:14 -0700 Subject: [PATCH] --- yaml --- r: 105459 b: refs/heads/master c: c432c2586a0811c7d0030d78f0993568bc889a6f h: refs/heads/master i: 105457: 2f6b3c6c6d6c88fd7bacc4a08899cbcc55f7c406 105455: 42df4ee492f2461d477173904ce138594d76c6ff v: v3 --- [refs] | 2 +- trunk/fs/autofs4/root.c | 11 +++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/[refs] b/[refs] index 2cca9dcc4977..95e71ad4c1f1 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: ef581a742874ebc4c28d24b374c78b762144ebdc +refs/heads/master: c432c2586a0811c7d0030d78f0993568bc889a6f diff --git a/trunk/fs/autofs4/root.c b/trunk/fs/autofs4/root.c index 324290c68275..1e901e5ea013 100644 --- a/trunk/fs/autofs4/root.c +++ b/trunk/fs/autofs4/root.c @@ -686,12 +686,11 @@ static struct dentry *autofs4_lookup(struct inode *dir, struct dentry *dentry, s spin_lock(&dentry->d_lock); dentry->d_flags |= DCACHE_AUTOFS_PENDING; spin_unlock(&dentry->d_lock); - } - - if (dentry->d_op && dentry->d_op->d_revalidate) { - mutex_unlock(&dir->i_mutex); - (dentry->d_op->d_revalidate)(dentry, nd); - mutex_lock(&dir->i_mutex); + if (dentry->d_op && dentry->d_op->d_revalidate) { + mutex_unlock(&dir->i_mutex); + (dentry->d_op->d_revalidate)(dentry, nd); + mutex_lock(&dir->i_mutex); + } } /*