[RHEL7,COMMIT] proc/vestat: show correct maxlat in /proc/vz/vestat

Submitted by Konstantin Khorenko on April 9, 2019, 12:53 p.m.

Details

Message ID 201904091252.x39CqxM7006246@finist-ce7.sw.ru
State New
Series "proc/vestat: show correct maxlat in /proc/vz/vestat"
Headers show

Commit Message

Konstantin Khorenko April 9, 2019, 12:53 p.m.
The commit is pushed to "branch-rh7-3.10.0-957.10.1.vz7.85.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-957.10.1.vz7.85.16
------>
commit be0691d500501217348d0cf411e4c599f14fc13f
Author: Konstantin Khorenko <khorenko@virtuozzo.com>
Date:   Tue Apr 9 15:41:45 2019 +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@virtuozzo.com>
---
 kernel/ve/vecalls.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/kernel/ve/vecalls.c b/kernel/ve/vecalls.c
index 9800d3e982a8..ae833c9b6a9f 100644
--- a/kernel/ve/vecalls.c
+++ b/kernel/ve/vecalls.c
@@ -293,7 +293,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;