X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fptlrpc%2Fpinger.c;h=ce1c682255e4a33b7a1a4d72e9613728d2747784;hp=756cd6300bcd37d20f8b06ca365cd59163fd2919;hb=17aba1a77740e3aaa2e8a8ddabe68256f3f5db74;hpb=f22a5356e93499efdf42e6b447de69b98aefdca5 diff --git a/lustre/ptlrpc/pinger.c b/lustre/ptlrpc/pinger.c index 756cd63..ce1c682 100644 --- a/lustre/ptlrpc/pinger.c +++ b/lustre/ptlrpc/pinger.c @@ -55,7 +55,10 @@ static int ptlrpc_ping_interpret(struct ptlrpc_request *req, /* if ping reply is an error, don't drop "replied" flag * on import, so pinger will invalidate it */ - if (ptlrpc_client_replied(req) && req->rq_repmsg->type == PTL_RPC_MSG_ERR) + if (ptlrpc_client_replied(req) && req->rq_repmsg == NULL) + CWARN("replied (%d) w/o rep buffer?\n", req->rq_replied); + if (ptlrpc_client_replied(req) && req->rq_repmsg && + req->rq_repmsg->type == PTL_RPC_MSG_ERR) return 0; imp->imp_waiting_ping_reply = 0;