From f101e512b5bbc8e7dc68a45dcafead55146e03da Mon Sep 17 00:00:00 2001 From: shadow Date: Wed, 5 Aug 2009 07:22:58 +0000 Subject: [PATCH] don't send revalidate rpc if client have LOOKUP lock already. Branch HEAD b=17545 i=green i=panda --- lustre/llite/dcache.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lustre/llite/dcache.c b/lustre/llite/dcache.c index d685990..1a4a33f 100644 --- a/lustre/llite/dcache.c +++ b/lustre/llite/dcache.c @@ -387,6 +387,9 @@ int ll_revalidate_it(struct dentry *de, int lookup_flags, GOTO(out_sa, rc); } + if ((de->d_flags & DCACHE_LUSTRE_INVALID) == 0) + GOTO(out_sa, rc = 1); + /* Never execute intents for mount points. * Attributes will be fixed up in ll_inode_revalidate_it */ if (d_mountpoint(de)) -- 1.8.3.1