Whamcloud - gitweb
Fix for failed assertion in iopen_connect_dentry (2.4 kernels only, from b1_0).
[fs/lustre-release.git] / lustre / kernel_patches / patches / vfs_intent_2.6.0-test1.patch
index 1f840e8..3d75965 100644 (file)
  {
        struct dentry * result;
        struct inode *dir = parent->d_inode;
-+        int counter = 0;
++      int counter = 0;
  
 +again:
-+        counter++;
++      counter++;
        down(&dir->i_sem);
        /*
         * First re-do the cached lookup just in case it was created
                if (!result->d_op->d_revalidate(result, nd) && !d_invalidate(result)) {
                        dput(result);
 -                      result = ERR_PTR(-ENOENT);
-+                        if (counter > 10)
-+                                result = ERR_PTR(-ESTALE);
-+                        if (!IS_ERR(result))
-+                                goto again;
++                      if (counter > 10)
++                              result = ERR_PTR(-ESTALE);
++                      if (!IS_ERR(result))
++                              goto again;
                }
        }
        return result;