Whamcloud - gitweb
add workaround for race in dcache with patchless client.
authorshadow <shadow>
Mon, 8 Sep 2008 08:55:42 +0000 (08:55 +0000)
committershadow <shadow>
Mon, 8 Sep 2008 08:55:42 +0000 (08:55 +0000)
Branch b1_8_gate
b=15975
i=johann
i=adilger

lustre/llite/file.c

index 3e99635..b0a1d96 100644 (file)
@@ -3023,9 +3023,11 @@ int ll_inode_revalidate_it(struct dentry *dentry, struct lookup_intent *it)
                    here to preserve get_cwd functionality on 2.6.
                    Bug 10503 */
                 if (!dentry->d_inode->i_nlink) {
+                        spin_lock(&ll_lookup_lock);
                         spin_lock(&dcache_lock);
                         ll_drop_dentry(dentry);
                         spin_unlock(&dcache_lock);
+                        spin_unlock(&ll_lookup_lock);
                 }
 
                 ll_lookup_finish_locks(&oit, dentry);