cgroup: build list of all cgroups under a given cgroupfs_root
Build a list of all cgroups anchored at cgroupfs_root->allcg_list and going through cgroup->allcg_node. The list is protected by cgroup_mutex and will be used to improve cgroup file handling. Signed-off-by: Tejun Heo <tj@kernel.org> Acked-by: Li Zefan <lizf@cn.fujitsu.com>
This commit is contained in:
parent
ff4c8d503e
commit
b0ca5a84fc
2 changed files with 12 additions and 0 deletions
|
@ -191,6 +191,8 @@ struct cgroup {
|
|||
*/
|
||||
struct list_head css_sets;
|
||||
|
||||
struct list_head allcg_node; /* cgroupfs_root->allcg_list */
|
||||
|
||||
/*
|
||||
* Linked list running through all cgroups that can
|
||||
* potentially be reaped by the release agent. Protected by
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue