[RHEL7,COMMIT] ve/sched: remove no ve root cgroup warning

Submitted by Konstantin Khorenko on Nov. 7, 2017, 12:34 p.m.


Message ID 201711071234.vA7CYFZx024703@finist_ce7.work
State New
Series "ve/sched: remove no ve root cgroup warning"
Headers show

Commit Message

Konstantin Khorenko Nov. 7, 2017, 12:34 p.m.
The commit is pushed to "branch-rh7-3.10.0-693.1.1.vz7.37.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-693.1.1.vz7.37.23
commit 31659699d99c1af8cc90a8e1b0212168aee1c981
Author: Pavel Tikhomirov <ptikhomirov@virtuozzo.com>
Date:   Tue Nov 7 15:34:15 2017 +0300

    ve/sched: remove no ve root cgroup warning
    We can get to ve_root_tg() from host's cgroup so it is expected
    to have no ve root cgroup for it. Call stack on task wakeup:
    wake_up_process -> try_to_wake_up -> select_task_rq_fair
    -> select_runnable_cpu -> check_cpulimit_spread -> tg_cpu_rate
    -> ve_root_tg
    Fixes: e661261 ("ve/sched: take nr_cpus and cpu_rate from ve root task group")
    Signed-off-by: Pavel Tikhomirov <ptikhomirov@virtuozzo.com>
 kernel/sched/core.c | 1 -
 1 file changed, 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 5b3daa1..2d258b9 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -349,7 +349,6 @@  static struct task_group *ve_root_tg(struct task_group *tg) {
 		return NULL;
 	cg = cgroup_get_ve_root(tg->css.cgroup);
-	WARN_ONCE(!cg, "Failed to find ve root cgroup, possible container configuration problem.\n");
 	return cg ? cgroup_tg(cg) : NULL;