The commit is pushed to "branch-rh7-3.10.0-957.10.1.vz7.94.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after rh7-3.10.0-957.10.1.vz7.94.13 ------> commit ae9c6c60aa52de05b1dfe851abc3d4cdc4e1adff Author: Pavel Butsykin <pbutsy...@virtuozzo.com> Date: Mon Apr 15 15:55:11 2019 +0300
fs/fuse kio: fix a typo in worth_to_grow() It was supposed the function returns true if time has passed less than netlat_cutoff since the request was sent. Signed-off-by: Pavel Butsykin <pbutsy...@virtuozzo.com> ===================== Patchset description: KIO performance fixes This patch-set aims to fix the performance issue with single-thread sequential async reads. https://pmc.acronis.com/browse/VSTOR-11050 Acked-by: Alexey Kuznetsov <kuz...@virtuozzo.com> Pavel Butsykin (4): fs/fuse kio: fix a typo in worth_to_grow() fs/fuse kio: relax congestion avoidance limits (backport from usermode) fs/fuse kio: add missed sock write in pcs_sock_sendmsg() fs/fuse kio: export io_locality --- fs/fuse/kio/pcs/pcs_map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/fuse/kio/pcs/pcs_map.c b/fs/fuse/kio/pcs/pcs_map.c index 2e30f0461101..df71406bc85e 100644 --- a/fs/fuse/kio/pcs/pcs_map.c +++ b/fs/fuse/kio/pcs/pcs_map.c @@ -1392,7 +1392,7 @@ static int worth_to_grow(struct pcs_int_request *ireq, struct pcs_cs * cs) if (ireq->type == PCS_IREQ_FLUSH) return 0; - return ktime_to_ms(ktime_sub(ktime_get(), ireq->ts_sent)) + cc_from_csset(cs->css)->netlat_cutoff; + return ktime_to_ms(ktime_sub(ktime_get(), ireq->ts_sent)) < cc_from_csset(cs->css)->netlat_cutoff; } static void pcs_cs_deaccount(struct pcs_int_request *ireq, struct pcs_cs * cs, int error) _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel