Whamcloud - gitweb
b=3892
authorrread <rread>
Thu, 22 Jul 2004 17:43:21 +0000 (17:43 +0000)
committerrread <rread>
Thu, 22 Jul 2004 17:43:21 +0000 (17:43 +0000)
Move the transno update so it's done after we check for the -ENOTCONN
reply.

lustre/ptlrpc/client.c

index fe9f627..8540c9f 100644 (file)
@@ -481,9 +481,6 @@ static int after_reply(struct ptlrpc_request *req)
                 RETURN(-EPROTO);
         }
 
-        /* Store transno in reqmsg for replay. */
-        req->rq_reqmsg->transno = req->rq_transno = req->rq_repmsg->transno;
-
         rc = ptlrpc_check_status(req);
 
         /* Either we've been evicted, or the server has failed for
@@ -500,6 +497,9 @@ static int after_reply(struct ptlrpc_request *req)
                 RETURN(rc);
         }
 
+        /* Store transno in reqmsg for replay. */
+        req->rq_reqmsg->transno = req->rq_transno = req->rq_repmsg->transno;
+
         if (req->rq_import->imp_replayable) {
                 spin_lock_irqsave(&imp->imp_lock, flags);
                 if (req->rq_replay || req->rq_transno != 0)