From d02e7994daf808237f6bb7a91c8ea296355d6848 Mon Sep 17 00:00:00 2001 From: shaver Date: Thu, 27 Nov 2003 01:05:52 +0000 Subject: [PATCH] b=2303: Unregister replies when skipping ping-requests from disconnected imports, to avoid tripping assertions when we free the requests. r=robert --- lustre/ptlrpc/pinger.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lustre/ptlrpc/pinger.c b/lustre/ptlrpc/pinger.c index d18abeb..3a645ca 100644 --- a/lustre/ptlrpc/pinger.c +++ b/lustre/ptlrpc/pinger.c @@ -160,8 +160,10 @@ static int ptlrpc_pinger_main(void *arg) req->rq_phase = RQ_PHASE_COMPLETE; set->set_remaining--; /* If it was disconnected, don't sweat it. */ - if (list_empty(&req->rq_import->imp_pinger_chain)) + if (list_empty(&req->rq_import->imp_pinger_chain)) { + ptlrpc_unregister_reply(req); continue; + } ptlrpc_expire_one_request(req); } -- 1.8.3.1