Whamcloud - gitweb
correctly skip time estimate if in recovery
authorshadow <shadow>
Tue, 28 Apr 2009 04:27:08 +0000 (04:27 +0000)
committershadow <shadow>
Tue, 28 Apr 2009 04:27:08 +0000 (04:27 +0000)
Branch HEAD
b=19223
i=johann
i=nathan

lustre/ptlrpc/client.c

index 3c99c64..55063a7 100644 (file)
@@ -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);