]> git.baikalelectronics.ru Git - kernel.git/commit
cgroup: convert cgroup_cft_commit() to use cgroup_for_each_descendant_pre()
authorLi Zefan <lizefan@huawei.com>
Tue, 18 Jun 2013 10:48:37 +0000 (18:48 +0800)
committerTejun Heo <tj@kernel.org>
Tue, 18 Jun 2013 18:14:22 +0000 (11:14 -0700)
commit52e0d7afbdc5615429bb8dec1b33063c64294a14
treefc45f039baee86a1b867d6c55cb05ea7e8c47288
parent95a0ac25e844212b2fc1b6bf7aa49a66e59d233f
cgroup: convert cgroup_cft_commit() to use cgroup_for_each_descendant_pre()

We used root->allcg_list to iterate cgroup hierarchy because at that time
cgroup_for_each_descendant_pre() hasn't been invented.

tj: In cgroup_cfts_commit(), s/@serial_nr/@update_upto/, move the
    assignment right above releasing cgroup_mutex and explain what's
    going on there.

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