Re: [PATCH 7/9] sched: Cgroup core-scheduling interface

From: Josh Don
Date: Thu Apr 01 2021 - 20:36:11 EST


Thanks, allowing for multiple group cookies in a hierarchy is a nice
improvement.

> + if (tgi != tg) {
> + if (tgi->core_cookie || (tgi->core_parent && tgi->core_parent != tg))
> + continue;
> +
> + tgi->core_parent = parent;
> + tgi->core_cookie = 0;

core_cookie must already be 0, given the check above.