]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
cgroup: implement for_each_css()
authorTejun Heo <tj@kernel.org>
Fri, 6 Dec 2013 20:11:56 +0000 (15:11 -0500)
committerTejun Heo <tj@kernel.org>
Fri, 6 Dec 2013 20:11:56 +0000 (15:11 -0500)
commit1c6727af4b495a9ec74c46d1fc08e508e675899d
tree83031295e5dc2d7fab009cd1ae5eb155c116bd72
parentc81c925ad9b0460a14ec35b52c61158da0733d51
cgroup: implement for_each_css()

There are enough places where css's of a cgroup are iterated, which
currently uses for_each_root_subsys() + explicit cgroup_css().  This
patch implements for_each_css() and replaces the above combination
with it.

This patch doesn't introduce any behavior changes.

v2: Updated to apply cleanly on top of v2 of "cgroup: fix css leaks on
    online_css() failure"

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Li Zefan <lizefan@huawei.com>
kernel/cgroup.c