Whamcloud - gitweb
don't resend llog cancels,
authorshadow <shadow>
Wed, 3 Dec 2008 04:21:38 +0000 (04:21 +0000)
committershadow <shadow>
Wed, 3 Dec 2008 04:21:38 +0000 (04:21 +0000)
fix resend requests for ldlm imports.

Branch b1_8_gate
b=17695
i=umka
i=tappro

lustre/ptlrpc/recov_thread.c

index 67a140e..b33522b 100644 (file)
@@ -223,7 +223,7 @@ static int llcd_send(struct llog_canceld_ctxt *llcd)
                 GOTO(exit, rc = 0);
 
         lcm = llcd->llcd_lcm;
-        
+
         /* 
          * Check if we're in exit stage. Do not send llcd in
          * this case. 
@@ -271,6 +271,11 @@ static int llcd_send(struct llog_canceld_ctxt *llcd)
         ptlrpc_at_set_req_timeout(req);
         req->rq_interpret_reply = llcd_interpret;
         req->rq_async_args.pointer_arg[0] = llcd;
+
+        /* llog cancels will be replayed after reconnect so this will do twice
+         * first from replay llog, second for resended rpc */
+        req->rq_no_delay = req->rq_no_resend = 1;
+
         rc = ptlrpc_set_add_new_req(&lcm->lcm_pc, req);
         if (rc) {
                 ptlrpc_req_finished(req);