[Devel] [PATCH RH8] proc/vestat: show correct maxlat in /proc/vz/vestat
Evgenii Shatokhin
eshatokhin at virtuozzo.com
Fri Jun 11 23:03:03 MSK 2021
From: Konstantin Khorenko <khorenko at virtuozzo.com>
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 f1cc04ee82da..07742e405409 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;
--
2.29.0
More information about the Devel
mailing list