Whamcloud - gitweb
yet more tracking of lost packets
authorbraam <braam>
Wed, 27 Feb 2002 18:23:31 +0000 (18:23 +0000)
committerbraam <braam>
Wed, 27 Feb 2002 18:23:31 +0000 (18:23 +0000)
lustre/include/linux/lustre_mds.h
lustre/ptlrpc/rpc.c

index 60e32b8..df6daf5 100644 (file)
@@ -46,6 +46,7 @@ struct mds_run_ctxt {
 
 #define MDS_STOPPING 1
 #define MDS_RUNNING 2
+#define MDS_STOPPED 4
 #define LUSTRE_MDS_NAME "mds"
 
 struct mds_obd {
index 3fdc05c..05b7bef 100644 (file)
@@ -60,6 +60,7 @@ struct ptlrpc_request *ptlrpc_prep_req(struct ptlrpc_client *cl,
                return NULL;
        }
        request->rq_reqhdr->opc = opcode;
+       request->rq_reqhdr->seqno = request->rq_xid;
 
        EXIT;
        return request;
@@ -121,7 +122,7 @@ int ptlrpc_queue_wait(struct ptlrpc_request *req,
                CERROR("unpack_rep failed: %d\n", rc);
                return rc;
        }
-
+        CERROR("got rep %lld\n", req->rq_rephdr->seqno);
        if ( req->rq_rephdr->status == 0 )
                 CDEBUG(0, "--> buf %p len %d status %d\n",
                       req->rq_repbuf, req->rq_replen,