]> git.baikalelectronics.ru Git - kernel.git/commit
cgroup: Skip subtree root in cgroup_update_dfl_csses()
authorWaiman Long <longman@redhat.com>
Thu, 28 Jul 2022 00:58:15 +0000 (20:58 -0400)
committerTejun Heo <tj@kernel.org>
Thu, 28 Jul 2022 17:26:30 +0000 (07:26 -1000)
commit4da09e44def3dcec32434f3f086170b3711e4fd4
treed3a6d2f86d4061c619ebc42c5ebcdfea00b812e9
parentb1ac6d30b10a7b6a0274d3cf6a3f19eb5d58a7a8
cgroup: Skip subtree root in cgroup_update_dfl_csses()

The cgroup_update_dfl_csses() function updates css associations when a
cgroup's subtree_control file is modified. Any changes made to a cgroup's
subtree_control file, however, will only affect its descendants but not
the cgroup itself. So there is no point in migrating csses associated
with that cgroup. We can skip them instead.

Signed-off-by: Waiman Long <longman@redhat.com>
Reviewed-by: Michal Koutný <mkoutny@suse.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/cgroup.c