From 75bca6d756e32fc964433cd32bfe86c6d403d157 Mon Sep 17 00:00:00 2001 From: yangsheng Date: Thu, 18 Dec 2008 06:15:42 +0000 Subject: [PATCH] Branch b_release_1_8_0 b=17993 i=sheng.yang, johann Author: Jim Garlick(LLNL) Clear rq_rep_swab_mask before DEBUG_REQ; --- lustre/ptlrpc/events.c | 1 + lustre/ptlrpc/pack_generic.c | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lustre/ptlrpc/events.c b/lustre/ptlrpc/events.c index d0bc6de..18d5eff 100644 --- a/lustre/ptlrpc/events.c +++ b/lustre/ptlrpc/events.c @@ -141,6 +141,7 @@ void reply_in_callback(lnet_event_t *ev) req->rq_receiving_reply = 1; } else { /* Real reply */ + req->rq_rep_swab_mask = 0; req->rq_replied = 1; req->rq_nob_received = ev->mlength; /* repmsg points to real reply */ diff --git a/lustre/ptlrpc/pack_generic.c b/lustre/ptlrpc/pack_generic.c index 526be0c..cee8fd7 100644 --- a/lustre/ptlrpc/pack_generic.c +++ b/lustre/ptlrpc/pack_generic.c @@ -1207,7 +1207,7 @@ __u32 lustre_msg_get_flags(struct lustre_msg *msg) return pb->pb_flags; } default: - CERROR("Wrong magic %x\n", msg->lm_magic); + CERROR("incorrect message magic: %08x\n", msg->lm_magic); /* flags might be printed in debug code while message * uninitialized */ return 0; @@ -1502,10 +1502,8 @@ int lustre_msg_get_status(struct lustre_msg *msg) { switch (msg->lm_magic) { case LUSTRE_MSG_MAGIC_V1: - case LUSTRE_MSG_MAGIC_V1_SWABBED: return ((struct lustre_msg_v1 *)msg)->lm_status; - case LUSTRE_MSG_MAGIC_V2: - case LUSTRE_MSG_MAGIC_V2_SWABBED: { + case LUSTRE_MSG_MAGIC_V2: { struct ptlrpc_body *pb = lustre_msg_ptlrpc_body(msg); if (!pb) { CERROR("invalid msg %p: no ptlrpc body!\n", msg); -- 1.8.3.1