From 888e769fffd43cbee4ad5834db31dc5837dab48e Mon Sep 17 00:00:00 2001
From: yury <yury>
Date: Fri, 19 Sep 2008 09:52:09 +0000
Subject: [PATCH] b=17110 r=shadow,wangdi

- fixes wrong checking for obd_stopping in recov_thread which prevents reco_thread from sending llcds to
mds in disconnect time because obd_stopping is set before filter_disconnect() is called.

This causes issues like this:

LustreError: 6912:0:(filter.c:2446:filter_disconnect()) error flushing logs to MDS: rc -19
---
 lustre/ptlrpc/recov_thread.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/lustre/ptlrpc/recov_thread.c b/lustre/ptlrpc/recov_thread.c
index 0ba82d9661..1ffdbd2e1b 100644
--- a/lustre/ptlrpc/recov_thread.c
+++ b/lustre/ptlrpc/recov_thread.c
@@ -545,11 +545,6 @@ int llog_obd_repl_cancel(struct llog_ctxt *ctxt,
                 GOTO(out, rc = -ENODEV);
         }
 
-        if (ctxt->loc_obd->obd_stopping) {
-                CDEBUG(D_RPCTRACE, "Obd is stopping for ctxt %p\n", ctxt);
-                GOTO(out, rc = -ENODEV);
-        }
-
         if (test_bit(LLOG_LCM_FL_EXIT, &lcm->lcm_flags)) {
                 CDEBUG(D_RPCTRACE, "Commit thread is stopping for ctxt %p\n", 
                        ctxt);
-- 
GitLab