From 2a7931e1576753934e3f585af434e14a3c3a7150 Mon Sep 17 00:00:00 2001 From: adilger <adilger> Date: Sat, 23 Aug 2008 04:39:23 +0000 Subject: [PATCH] Branch b1_6 Don't print console message the first time the import is set. --- lustre/ptlrpc/llog_net.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lustre/ptlrpc/llog_net.c b/lustre/ptlrpc/llog_net.c index 88285df84c..5a16b56c7f 100644 --- a/lustre/ptlrpc/llog_net.c +++ b/lustre/ptlrpc/llog_net.c @@ -164,9 +164,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); -- GitLab