Whamcloud - gitweb
don't send revalidate rpc if client have LOOKUP lock already.
authorshadow <shadow>
Wed, 5 Aug 2009 07:22:58 +0000 (07:22 +0000)
committershadow <shadow>
Wed, 5 Aug 2009 07:22:58 +0000 (07:22 +0000)
Branch HEAD
b=17545
i=green
i=panda

lustre/llite/dcache.c

index d685990..1a4a33f 100644 (file)
@@ -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))