From: phil Date: Mon, 20 Dec 2004 21:01:39 +0000 (+0000) Subject: I remember very clearly making this change, but I don't know where it X-Git-Tag: v1_8_0_110~486^5~69 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=ace54a5a977373fc18805d24555edd38dbe21502;p=fs%2Flustre-release.git I remember very clearly making this change, but I don't know where it got saved. Probably in the wrong source tree. --- 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,