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:
8788812
)
b=18380
author
jxiong
<jxiong>
Wed, 4 Mar 2009 05:21:25 +0000
(
05:21
+0000)
committer
jxiong
<jxiong>
Wed, 4 Mar 2009 05:21:25 +0000
(
05:21
+0000)
r=nathan,wangdi
Fix a deadlock case for procfs.
lustre/ldlm/ldlm_lib.c
patch
|
blob
|
history
diff --git
a/lustre/ldlm/ldlm_lib.c
b/lustre/ldlm/ldlm_lib.c
index
b400a27
..
8687129
100644
(file)
--- a/
lustre/ldlm/ldlm_lib.c
+++ b/
lustre/ldlm/ldlm_lib.c
@@
-411,9
+411,15
@@
int client_connect_import(const struct lu_env *env,
if (obd->obd_namespace != NULL)
CERROR("already have namespace!\n");
+
+ /*
+ * Deadlock case - bug 18380
+ */
+ up_write(&cli->cl_sem);
obd->obd_namespace = ldlm_namespace_new(obd, obd->obd_name,
LDLM_NAMESPACE_CLIENT,
LDLM_NAMESPACE_GREEDY);
+ down_write(&cli->cl_sem);
if (obd->obd_namespace == NULL)
GOTO(out_disco, rc = -ENOMEM);