Skip to content
Snippets Groups Projects
Commit c14cdf6e authored by Andreas Dilger's avatar Andreas Dilger
Browse files

Branch HEAD

Don't print console message first time import is set.
parent 71de2a43
No related branches found
No related tags found
No related merge requests found
...@@ -141,9 +141,11 @@ int llog_receptor_accept(struct llog_ctxt *ctxt, struct obd_import *imp) ...@@ -141,9 +141,11 @@ int llog_receptor_accept(struct llog_ctxt *ctxt, struct obd_import *imp)
LASSERT(ctxt); LASSERT(ctxt);
mutex_down(&ctxt->loc_sem); mutex_down(&ctxt->loc_sem);
if (ctxt->loc_imp != imp) { 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); class_import_put(ctxt->loc_imp);
}
ctxt->loc_imp = class_import_get(imp); ctxt->loc_imp = class_import_get(imp);
} }
mutex_up(&ctxt->loc_sem); mutex_up(&ctxt->loc_sem);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment