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:
71de2a4
)
Branch HEAD
author
adilger
<adilger>
Sat, 23 Aug 2008 05:03:24 +0000
(
05:03
+0000)
committer
adilger
<adilger>
Sat, 23 Aug 2008 05:03:24 +0000
(
05:03
+0000)
Don't print console message first time import is set.
lustre/ptlrpc/llog_net.c
patch
|
blob
|
history
diff --git
a/lustre/ptlrpc/llog_net.c
b/lustre/ptlrpc/llog_net.c
index
cd87648
..
351661b
100644
(file)
--- a/
lustre/ptlrpc/llog_net.c
+++ b/
lustre/ptlrpc/llog_net.c
@@
-141,9
+141,11
@@
int llog_receptor_accept(struct llog_ctxt *ctxt, struct obd_import *imp)
LASSERT(ctxt);
mutex_down(&ctxt->loc_sem);
if (ctxt->loc_imp != imp) {
- CWARN("changing the import %p - %p\n", ctxt->loc_imp, imp);
- if (ctxt->loc_imp)
+ if (ctxt->loc_imp) {
+ CWARN("changing the import %p - %p\n",
+ ctxt->loc_imp, imp);
class_import_put(ctxt->loc_imp);
+ }
ctxt->loc_imp = class_import_get(imp);
}
mutex_up(&ctxt->loc_sem);