Whamcloud - gitweb
I remember very clearly making this change, but I don't know where it
authorphil <phil>
Mon, 20 Dec 2004 21:01:39 +0000 (21:01 +0000)
committerphil <phil>
Mon, 20 Dec 2004 21:01:39 +0000 (21:01 +0000)
got saved.  Probably in the wrong source tree.

lustre/mds/mds_internal.h

index 503bc42..139f621 100644 (file)
@@ -61,6 +61,20 @@ do {                                                                       \
 } while (0)
 #endif /* __KERNEL__ */
 
+#define MDS_CHECK_RESENT(req, reconstruct)                                     \
+{                                                                              \
+        if (lustre_msg_get_flags(req->rq_reqmsg) & MSG_RESENT) {               \
+                struct mds_client_data *mcd =                                  \
+                        req->rq_export->exp_mds_data.med_mcd;                  \
+                if (mcd->mcd_last_xid == req->rq_xid) {                        \
+                        reconstruct;                                           \
+                        RETURN(req->rq_repmsg->status);                        \
+                }                                                              \
+                DEBUG_REQ(D_HA, req, "no reply for RESENT req (have "LPD64")", \
+                          mcd->mcd_last_xid);                                  \
+        }                                                                      \
+}
+
 /* mds/mds_reint.c */
 int res_gt(struct ldlm_res_id *res1, struct ldlm_res_id *res2);
 int enqueue_ordered_locks(struct obd_device *obd, struct ldlm_res_id *p1_res_id,