Whamcloud - gitweb
LU-1963 ptlrpc: Incorrect accounting for srv_hpreq_ratio
[fs/lustre-release.git] / lustre / ptlrpc / service.c
index 6d45c5c..0d44ac1 100644 (file)
@@ -1610,6 +1610,9 @@ static int ptlrpc_server_allow_high(struct ptlrpc_service_part *svcpt,
        if (svcpt->scp_nreqs_active >= svcpt->scp_nthrs_running - 1)
                return 0;
 
+       if (svcpt->scp_nhreqs_active == 0)
+               return 1;
+
        return cfs_list_empty(&svcpt->scp_req_pending) ||
               svcpt->scp_hreq_count < svcpt->scp_service->srv_hpreq_ratio;
 }