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);
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);