Whamcloud - gitweb
b=17110
authoryury <yury>
Fri, 19 Sep 2008 09:45:30 +0000 (09:45 +0000)
committeryury <yury>
Fri, 19 Sep 2008 09:45:30 +0000 (09:45 +0000)
r=shadow,wangdi

- fixes wrong checking for obd_stopping in recov_thread which prevents recov_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

index 60e8a13..e995c5c 100644 (file)
@@ -552,11 +552,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);