From 4b603f7fe44f10ce4165d335c4df2881294a5775 Mon Sep 17 00:00:00 2001 From: shadow Date: Mon, 8 Sep 2008 08:55:42 +0000 Subject: [PATCH] add workaround for race in dcache with patchless client. Branch b1_8_gate b=15975 i=johann i=adilger --- lustre/llite/file.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lustre/llite/file.c b/lustre/llite/file.c index 3e99635..b0a1d96 100644 --- a/lustre/llite/file.c +++ b/lustre/llite/file.c @@ -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); -- 1.8.3.1