Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e70ffaf
)
b=20139 prevent parent thread to be killed before its child becoming daemon
author
Fan Yong
<Yong.Fan@Sun.COM>
Sat, 23 Jan 2010 06:08:13 +0000
(14:08 +0800)
committer
Robert Read
<rread@sun.com>
Mon, 25 Jan 2010 18:47:56 +0000
(10:47 -0800)
Prevent parent thread to be killed before its child becoming daemon.
i=tappro
i=robert
lustre/llite/statahead.c
patch
|
blob
|
history
diff --git
a/lustre/llite/statahead.c
b/lustre/llite/statahead.c
index
21846cf
..
51cadc5
100644
(file)
--- a/
lustre/llite/statahead.c
+++ b/
lustre/llite/statahead.c
@@
-1067,7
+1067,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;
@@
-1118,6
+1118,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),