[Devel] [PATCH RHEL8 COMMIT] ve/sysinfo/loadavg: Virtualize loadavg values in sysinfo()

Konstantin Khorenko khorenko at virtuozzo.com
Wed Oct 28 19:21:01 MSK 2020


The commit is pushed to "branch-rh8-4.18.0-193.6.3.vz8.4.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh8-4.18.0-193.6.3.vz8.4.14
------>
commit 0ce760499dd491434701337e3fd9837f6def2398
Author: Konstantin Khorenko <khorenko at virtuozzo.com>
Date:   Thu Oct 22 12:10:42 2020 +0300

    ve/sysinfo/loadavg: Virtualize loadavg values in sysinfo()
    
    Fixes: 688c65f8eaf1 ("ve: Virtualize sysinfo")
    TODO: move appropriate hunk to this commit from the commit above
    
    Signed-off-by: Konstantin Khorenko <khorenko at virtuozzo.com>
---
 kernel/sys.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/kernel/sys.c b/kernel/sys.c
index 2646c8041258..e7e07ea8d7ef 100644
--- a/kernel/sys.c
+++ b/kernel/sys.c
@@ -2575,11 +2575,7 @@ static int do_sysinfo(struct sysinfo *info)
 
 		info->procs = nr_threads_ve(ve);
 
-#if 0
-FIXME after
-715f311fdb4a ("sched: Account task_group::cpustat,taskstats,avenrun") is ported
 		get_avenrun_ve(info->loads, 0, SI_LOAD_SHIFT - FSHIFT);
-#endif
 	}
 
 	/*


More information about the Devel mailing list