From e7cd3c16343bcc66d3c946b58bf690321fbfcfed Mon Sep 17 00:00:00 2001 From: adilger Date: Fri, 22 Aug 2008 22:52:07 +0000 Subject: [PATCH] Branch b1_8_gate Don't print to console if setting import for the first time. --- 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 88285df..5a16b56 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); -- 1.8.3.1