From: yury Date: Fri, 19 Sep 2008 10:12:38 +0000 (+0000) Subject: b=17110 X-Git-Tag: v1_7_110~1^33~1 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=410bd99c8a07ca1ff63e93b436cc20150f762b3a;p=fs%2Flustre-release.git 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 --- diff --git a/lustre/ptlrpc/recov_thread.c b/lustre/ptlrpc/recov_thread.c index 0ba82d9..1ffdbd2 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);