Whamcloud - gitweb
b=17110
[fs/lustre-release.git] / lustre / ptlrpc / recov_thread.c
index 60a4aaf..e995c5c 100644 (file)
@@ -234,9 +234,10 @@ static int llcd_send(struct llog_canceld_ctxt *llcd)
         req->rq_interpret_reply = llcd_interpret;
         req->rq_async_args.pointer_arg[0] = llcd;
         rc = ptlrpc_set_add_new_req(&lcm->lcm_pc, req);
-        if (rc)
+        if (rc) {
+                ptlrpc_request_free(req);
                 GOTO(exit, rc);
-
+        }
         RETURN(0);
 exit:
         CDEBUG(D_RPCTRACE, "Refused llcd %p\n", llcd);
@@ -551,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);