[Devel] [PATCH RHEL7 COMMIT] proc/vestat: show correct maxlat in /proc/vz/vestat
Konstantin Khorenko
khorenko at virtuozzo.com
Tue Apr 9 15:53:01 MSK 2019
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 at 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 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 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;
More information about the Devel
mailing list