From: shadow Date: Wed, 5 Aug 2009 07:22:58 +0000 (+0000) Subject: don't send revalidate rpc if client have LOOKUP lock already. X-Git-Tag: v1_9_231~4 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=f101e512b5bbc8e7dc68a45dcafead55146e03da;p=fs%2Flustre-release.git don't send revalidate rpc if client have LOOKUP lock already. Branch HEAD b=17545 i=green i=panda --- 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))