[Devel] [PATCH RHEL7 COMMIT] fs/fuse kio: show latency in cs_stats properly

Vasily Averin vvs at virtuozzo.com
Thu Aug 6 09:49:44 MSK 2020


The commit is pushed to "branch-rh7-3.10.0-1127.8.2.vz7.158.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-1127.8.2.vz7.158.4
------>
commit 0141bdae4e7b18e4866161552f36e9b11c7d88f8
Author: Ildar Ismagilov <Ildar.Ismagilov at acronis.com>
Date:   Thu Aug 6 09:49:44 2020 +0300

    fs/fuse kio: show latency in cs_stats properly
    
    The positions of net and io latency in cs_stats file are brought
    into line with header.
    
    The header of cs_stats:
    csid  rpc  rd_ops  wr_ops  sync_ops  net_lat  io_lat  avg_in_flight
    
    Signed-off-by: Ildar Ismagilov <Ildar.Ismagilov at acronis.com>
    Acked-by: Alexey Kuznetsov <Alexey.Kuznetsov at acronis.com>
---
 fs/fuse/kio/pcs/fuse_stat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/fuse/kio/pcs/fuse_stat.c b/fs/fuse/kio/pcs/fuse_stat.c
index 47e7f1c..e92bce8 100644
--- a/fs/fuse/kio/pcs/fuse_stat.c
+++ b/fs/fuse/kio/pcs/fuse_stat.c
@@ -358,8 +358,8 @@ static int do_show_cs_stats(struct pcs_cs *cs, void *ctx)
 		read_ops_rate.rate / STAT_TIMER_PERIOD,
 		write_ops_rate.rate / STAT_TIMER_PERIOD,
 		sync_ops_rate.rate / STAT_TIMER_PERIOD);
-	latency_percl_print(&iolat, m);
 	latency_percl_print(&netlat, m);
+	latency_percl_print(&iolat, m);
 	seq_printf(m, "%-10u\n", in_flight_avg);
 	return 0;
 }


More information about the Devel mailing list