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

Submitted by Vasily Averin on Aug. 6, 2020, 6:49 a.m.


Message ID 202008060649.0766niAj004698@vz7build.vvs.sw.ru
State New
Series "fs/fuse kio: show latency in cs_stats properly"
Headers show

Commit Message

Vasily Averin Aug. 6, 2020, 6:49 a.m.
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@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@acronis.com>
    Acked-by: Alexey Kuznetsov <Alexey.Kuznetsov@acronis.com>
 fs/fuse/kio/pcs/fuse_stat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

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;