Chen Ridong ee1251fc0c cgroup/freezer: Reduce redundant traversal for cgroup_freeze
Whether a cgroup is frozen is determined solely by whether it is set to
to be frozen and whether its parent is frozen. Currently, when is cgroup
is frozen or unfrozen, it iterates through the entire subtree to freeze
or unfreeze its descentdants. However, this is unesessary for a cgroup
that does not change its effective frozen status. This path aims to skip
the subtree if its parent does not have a change in effective freeze.

For an example, subtree like, a-b-c-d-e-f-g, when a is frozen, the
entire tree is frozen. If we freeze b and c again, it is unesessary to
iterate d, e, f and g. So does that If we unfreeze b/c.

Reviewed-by: Michal Koutný <mkoutny@suse.com>
Signed-off-by: Chen Ridong <chenridong@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
2024-10-23 09:45:00 -10:00
..
2024-09-26 11:54:40 -07:00
2024-09-19 10:18:15 +02:00
2024-09-20 18:28:26 +03:00
2024-09-19 11:28:51 +02:00
2024-09-17 10:48:09 +02:00
2024-09-14 09:09:59 +02:00
2024-09-29 09:35:10 -07:00
2024-09-27 12:10:45 -07:00
2024-09-25 14:15:04 +02:00