]> git.baikalelectronics.ru Git - kernel.git/commit
cgroup: short-circuit cset_cgroup_from_root() on the default hierarchy
authorTejun Heo <tj@kernel.org>
Wed, 2 Aug 2017 22:39:38 +0000 (15:39 -0700)
committerTejun Heo <tj@kernel.org>
Wed, 2 Aug 2017 22:39:38 +0000 (15:39 -0700)
commit32a1061451cd76d5f68c90854cf623027ff03da1
tree70307b2105a576f8aaee0bf48344bc61e404dbf7
parentce1b787bc0e2c75cb6d54d0afd0bb775f17e641b
cgroup: short-circuit cset_cgroup_from_root() on the default hierarchy

Each css_set directly points to the default cgroup it belongs to, so
there's no reason to walk the cgrp_links list on the default
hierarchy.

Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/cgroup.c