Whamcloud - gitweb
not revalidate dentry if it root dentry.
authorshadow <shadow>
Thu, 27 Sep 2007 12:04:08 +0000 (12:04 +0000)
committershadow <shadow>
Thu, 27 Sep 2007 12:04:08 +0000 (12:04 +0000)
b=13334
i=green
i=johann

lustre/ChangeLog
lustre/llite/dcache.c

index 0513b7e..ad7c111 100644 (file)
@@ -277,6 +277,11 @@ Description: Fix warning idr_remove called for id=.. which is not allocated.
 Details    : Last kernels save old s_dev before kill super and not allow 
              to restore from callback - restore it before call kill_anon_super.
 
+Severity   : normal
+Bugzilla   : 13730
+Description: client sometimes tried revalidate root dentry.
+Details    : not revalidate dentry if it root dentry.
+
 --------------------------------------------------------------------------------
 
 2007-08-27         Cluster File Systems, Inc. <info@clusterfs.com>
index 29418ff..2c65e8c 100644 (file)
@@ -261,7 +261,7 @@ restart:
 
                         continue;
                 }
-                
+
                 if (ll_drop_dentry(dentry))
                           goto restart;
         }
@@ -372,7 +372,7 @@ int ll_revalidate_it(struct dentry *de, int lookup_flags,
 
         /* Root of the lustre tree. Always valid.
          * Attributes will be fixed up in ll_inode_revalidate_it */
-        if (de->d_name.name[0] == '/' && de->d_name.len == 1)
+        if (de == de->d_sb->s_root)
                 RETURN(1);
 
         OBD_FAIL_TIMEOUT(OBD_FAIL_MDC_REVALIDATE_PAUSE, 5);