Whamcloud - gitweb
correctly skip time estimate if in recovery
authorshadow <shadow>
Thu, 23 Apr 2009 06:12:23 +0000 (06:12 +0000)
committershadow <shadow>
Thu, 23 Apr 2009 06:12:23 +0000 (06:12 +0000)
Branch b1_8
b=19223
i=johann
i=nathan

lustre/ChangeLog
lustre/ptlrpc/client.c
lustre/tests/conf-sanity.sh

index dd3d648..775d8b5 100644 (file)
@@ -33,6 +33,11 @@ Bugzilla   : 3055
 Description: Enable adaptive timeouts by default
 
 Severity   : normal
+Bugzilla   : 19223
+Descriptoin: correctly skip time estimate if in recovery
+Details    : rq_send_state insn't bitmask so using bitwise ops is forbid.
+
+Severity   : normal
 Bugzilla   : 18192
 Descriptoin: fix goal inodes
 Details    : Allocate inodes for llog in last inode group for avoid broke
index 337cf9b..bf061a6 100644 (file)
@@ -226,7 +226,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);
index 21f5484..00a2ba0 100644 (file)
@@ -1771,6 +1771,7 @@ test_50e() {
        local pid
        CONN_PROC="osc.$FSNAME-OST0000-osc.ost_server_uuid"
        
+       reformat_and_config
        start_mds || return 1
        #first client should see only one ost
        start_ost || return 2