Whamcloud - gitweb
b=17323
authoryury <yury>
Tue, 21 Oct 2008 17:21:21 +0000 (17:21 +0000)
committeryury <yury>
Tue, 21 Oct 2008 17:21:21 +0000 (17:21 +0000)
r=adilger,johann

- fixes log_cancel resend handling

lustre/ptlrpc/client.c

index 2ff3d18..3aa63ff 100644 (file)
@@ -1156,7 +1156,11 @@ int ptlrpc_check_set(struct ptlrpc_request_set *set)
                                 spin_unlock(&imp->imp_lock);
 
                                 req->rq_waiting = 0;
-                                if (req->rq_resend) {
+
+                                if (req->rq_timedout||req->rq_resend) {
+                                        /* This is re-sending anyways, 
+                                         * let's mark req as resend. */
+                                        req->rq_resend = 1;
                                         lustre_msg_add_flags(req->rq_reqmsg,
                                                              MSG_RESENT);
                                         if (req->rq_bulk) {