From a0d0fe6adb86c4df40ddff1df231e8ae092845f2 Mon Sep 17 00:00:00 2001 From: Fan Yong Date: Thu, 14 Jan 2010 10:34:48 +0800 Subject: [PATCH] b=20139 prevent parent thread to be killed before its child becoming daemon Prevent parent thread to be killed before its child becoming daemon. i=tappro i=robert --- lustre/llite/statahead.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lustre/llite/statahead.c b/lustre/llite/statahead.c index 70bb52e..9553336 100644 --- a/lustre/llite/statahead.c +++ b/lustre/llite/statahead.c @@ -1008,7 +1008,7 @@ int do_statahead_enter(struct inode *dir, struct dentry **dentryp, int lookup) struct ll_inode_info *lli; struct ll_statahead_info *sai; struct dentry *parent; - struct l_wait_info lwi = LWI_INTR(LWI_ON_SIGNAL_NOOP, NULL); + struct l_wait_info lwi = { 0 }; int rc = 0; ENTRY; @@ -1059,6 +1059,7 @@ int do_statahead_enter(struct inode *dir, struct dentry **dentryp, int lookup) /* * thread started already, avoid double-stat. */ + lwi = LWI_INTR(LWI_ON_SIGNAL_NOOP, NULL); rc = l_wait_event(sai->sai_waitq, ll_sai_entry_stated(sai) || sa_is_stopped(sai), -- 1.8.3.1