From ace54a5a977373fc18805d24555edd38dbe21502 Mon Sep 17 00:00:00 2001 From: phil Date: Mon, 20 Dec 2004 21:01:39 +0000 Subject: [PATCH] I remember very clearly making this change, but I don't know where it got saved. Probably in the wrong source tree. --- lustre/mds/mds_internal.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lustre/mds/mds_internal.h b/lustre/mds/mds_internal.h index 503bc42..139f621 100644 --- a/lustre/mds/mds_internal.h +++ b/lustre/mds/mds_internal.h @@ -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, -- 1.8.3.1