From a4da590a0f134bbbd8f4e4249bf9dddf196c2c23 Mon Sep 17 00:00:00 2001 From: wangdi Date: Fri, 4 Jul 2008 16:17:08 +0000 Subject: [PATCH] Branch: b1_6 checking import before put the import, because stale export disconnect might also trigger this llcd_ctxt_put b=15684 i=adilger --- lustre/ptlrpc/recov_thread.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lustre/ptlrpc/recov_thread.c b/lustre/ptlrpc/recov_thread.c index 6bf6145..b930aaa 100644 --- a/lustre/ptlrpc/recov_thread.c +++ b/lustre/ptlrpc/recov_thread.c @@ -168,8 +168,10 @@ static void ctxt_llcd_put(struct llog_ctxt *ctxt) llcd_put(ctxt->loc_llcd); ctxt->loc_llcd = NULL; } - class_import_put(ctxt->loc_imp); - ctxt->loc_imp = NULL; + if (ctxt->loc_imp) { + class_import_put(ctxt->loc_imp); + ctxt->loc_imp = NULL; + } mutex_up(&ctxt->loc_sem); } -- 1.8.3.1