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
(from parent 1:
14192d0
)
Branch HEAD
author
bobijam
<bobijam>
Wed, 30 Apr 2008 01:50:54 +0000
(
01:50
+0000)
committer
bobijam
<bobijam>
Wed, 30 Apr 2008 01:50:54 +0000
(
01:50
+0000)
b=14995
i=wangdi, rread
send activate event only for evicted imports.
lustre/ptlrpc/import.c
patch
|
blob
|
history
diff --git
a/lustre/ptlrpc/import.c
b/lustre/ptlrpc/import.c
index
aba05cf
..
eb4b5fa
100644
(file)
--- a/
lustre/ptlrpc/import.c
+++ b/
lustre/ptlrpc/import.c
@@
-644,7
+644,14
@@
static int ptlrpc_connect_interpret(struct ptlrpc_request *request,
*lustre_msg_get_handle(request->rq_repmsg);
IMPORT_SET_STATE(imp, LUSTRE_IMP_FULL);
- ptlrpc_activate_import(imp);
+ spin_lock(&imp->imp_lock);
+ if (imp->imp_invalid) {
+ spin_unlock(&imp->imp_lock);
+ ptlrpc_activate_import(imp);
+ } else {
+ spin_unlock(&imp->imp_lock);
+ }
+
GOTO(finish, rc = 0);
} else {
spin_unlock(&imp->imp_lock);