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:
f1c6dfb
)
don't crash an MDS if a client send a reconnect.
author
braam
<braam>
Sun, 8 Sep 2002 20:01:41 +0000
(20:01 +0000)
committer
braam
<braam>
Sun, 8 Sep 2002 20:01:41 +0000
(20:01 +0000)
lustre/mds/handler.c
patch
|
blob
|
history
diff --git
a/lustre/mds/handler.c
b/lustre/mds/handler.c
index
49e4344
..
fa285e6
100644
(file)
--- a/
lustre/mds/handler.c
+++ b/
lustre/mds/handler.c
@@
-281,7
+281,10
@@
static int mds_connect(struct lustre_handle *conn, struct obd_device *obd,
if (!memcmp(cluuid, mcd->mcd_uuid, sizeof(mcd->mcd_uuid))) {
LASSERT(exp->exp_obd == obd);
- LASSERT(list_empty(&exp->exp_conn_chain));
+ if (!list_empty(&exp->exp_conn_chain)) {
+ CERROR("existing uuid/export, list not empty!\n");
+ RETURN(-EALREADY);
+ }
conn->addr = (__u64) (unsigned long)exp;
conn->cookie = exp->exp_cookie;
spin_unlock(&obd->obd_dev_lock);