X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fptlrpc%2Fservice.c;h=e80a8ded3d5a3ea99c8b73cc360d9fff247f852f;hp=5af5c4f8e8aa494b4d6a1bd5e6e7bf5a36b91355;hb=56bb088c328b4f987bee7c7809dfb35bc8fb6f4a;hpb=8d9bd82d128d163a38509b0c5a281e661268e76b diff --git a/lustre/ptlrpc/service.c b/lustre/ptlrpc/service.c index 5af5c4f..e80a8de 100644 --- a/lustre/ptlrpc/service.c +++ b/lustre/ptlrpc/service.c @@ -185,6 +185,14 @@ static int handle_incoming_request(struct obd_device *obddev, goto out; } + if (request->rq_reqmsg->version != PTLRPC_MSG_VERSION) { + CERROR("wrong lustre_msg version %d: ptl %d from "LPX64" xid " + LPD64"\n", + request->rq_reqmsg->version, svc->srv_req_portal, + event->initiator.nid, request->rq_xid); + goto out; + } + CDEBUG(D_NET, "got req "LPD64" (md: %p + %d)\n", request->rq_xid, event->mem_desc.start, event->offset);