From 725ecd8fc526a734e1d23012f5d66b2f49f55104 Mon Sep 17 00:00:00 2001 From: shadow Date: Tue, 28 Apr 2009 04:27:08 +0000 Subject: [PATCH] correctly skip time estimate if in recovery Branch HEAD b=19223 i=johann i=nathan --- lustre/ptlrpc/client.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lustre/ptlrpc/client.c b/lustre/ptlrpc/client.c index 3c99c64..55063a7 100644 --- a/lustre/ptlrpc/client.c +++ b/lustre/ptlrpc/client.c @@ -225,7 +225,8 @@ static void ptlrpc_at_adj_service(struct ptlrpc_request *req, struct imp_at *at; /* do estimate only if is not in recovery */ - if (!(req->rq_send_state & (LUSTRE_IMP_FULL | LUSTRE_IMP_CONNECTING))) + if ((req->rq_send_state != LUSTRE_IMP_FULL) && + (req->rq_send_state != LUSTRE_IMP_CONNECTING)) return; LASSERT(req->rq_import); -- 1.8.3.1