From 6726f22989a6016ace1fef1a23338bbd088800e4 Mon Sep 17 00:00:00 2001 From: fanyong Date: Tue, 14 Oct 2008 07:17:21 +0000 Subject: [PATCH] Branch b1_8_gate b=16947 i=huanghua i=johann Code cleanup and possible race conditions fix when statahead startup. --- lustre/llite/llite_nfs.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/lustre/llite/llite_nfs.c b/lustre/llite/llite_nfs.c index 4afb60e..23bda69 100644 --- a/lustre/llite/llite_nfs.c +++ b/lustre/llite/llite_nfs.c @@ -176,18 +176,7 @@ static struct dentry *ll_iget_for_nfs(struct super_block *sb, unsigned long ino, result->d_flags |= DCACHE_DISCONNECTED; #endif - ll_set_dd(result); - - lock_dentry(result); - if (unlikely(result->d_op == &ll_init_d_ops)) { - result->d_op = &ll_d_ops; - unlock_dentry(result); - smp_wmb(); - ll_d_wakeup(result); - } else { - result->d_op = &ll_d_ops; - unlock_dentry(result); - } + ll_dops_init(result, 1); RETURN(result); } -- 1.8.3.1