Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-1963 ptlrpc: Incorrect accounting for srv_hpreq_ratio
[fs/lustre-release.git]
/
lustre
/
ptlrpc
/
service.c
diff --git
a/lustre/ptlrpc/service.c
b/lustre/ptlrpc/service.c
index
6d45c5c
..
0d44ac1
100644
(file)
--- a/
lustre/ptlrpc/service.c
+++ b/
lustre/ptlrpc/service.c
@@
-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;
}