[Devel] [PATCH RHEL8 COMMIT] proc/vestat: show correct maxlat in /proc/vz/vestat

Konstantin Khorenko khorenko at virtuozzo.com
Wed Jun 16 13:46:07 MSK 2021


The commit is pushed to "branch-rh8-4.18.0-240.1.1.vz8.5.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh8-4.18.0-240.1.1.vz8.5.43
------>
commit 49265e945e1ff21513d5b0b2842039b91e2dc990
Author: Konstantin Khorenko <khorenko at virtuozzo.com>
Date:   Wed Jun 16 13:46:07 2021 +0300

    proc/vestat: show correct maxlat in /proc/vz/vestat
    
    Don't show pointer as a latency value, it does not look valid.
    
    Fixes: 9ecc9b390a5d ("/proc/<pid>/vz_latency: Show maximal allocation
    latency in the last second.")
    
    https://jira.sw.ru/browse/PSBM-93675
    
    Signed-off-by: Konstantin Khorenko <khorenko at virtuozzo.com>
    
    Fixes: cb894905bd82 ("/proc/<pid>/vz_latency: Show maximal allocation
    latency in the last second.") in VZ8.
    
    Added to VZ8 in the scope of https://jira.sw.ru/browse/PSBM-127844.
    Signed-off-by: Evgenii Shatokhin <eshatokhin at virtuozzo.com>
---
 kernel/ve/vecalls.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/ve/vecalls.c b/kernel/ve/vecalls.c
index 04e3d41dfed6..1ba7d6b4455e 100644
--- a/kernel/ve/vecalls.c
+++ b/kernel/ve/vecalls.c
@@ -158,7 +158,7 @@ static int vestat_seq_show(struct seq_file *m, void *v)
 		   (unsigned long long)strv_time,
 		   (unsigned long long)uptime_cycles,
 		   (unsigned long long)used,
-		   (unsigned long long)ve->sched_lat_ve.last.maxlat,
+		   (unsigned long long)ve->sched_lat_ve.last.maxlat[0],
 		   (unsigned long long)ve->sched_lat_ve.last.totlat,
 		   ve->sched_lat_ve.last.count);
 	return 0;


More information about the Devel mailing list