summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
f1b513e)
Allow one thread to always handle HP requests.
Without this patch 1 thread dedicated to serve HP requests
will do nothing if all normal requests are in progress for
a long time but there are HP requests in input queue.
Xyratex-bug-id: MRP-661
Signed-off-by: Andriy Skulysh <Andriy_Skulysh@xyratex.com>
Reviewed-by: Alexey Lyashkov <alexey_lyashkov@xyratex.com>
Reviewed-by: Nathan Rutman <nathan.rutman@xyratex.com>
Change-Id: I35f5329ca019a5d2e2dcee9d7a13eaa74e85233e
Reviewed-on: http://review.whamcloud.com/4008
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Hudson
Reviewed-by: Keith Mannthey <keith.mannthey@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
if (svcpt->scp_nreqs_active >= svcpt->scp_nthrs_running - 1)
return 0;
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;
}
return cfs_list_empty(&svcpt->scp_req_pending) ||
svcpt->scp_hreq_count < svcpt->scp_service->srv_hpreq_ratio;
}