mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-04-05 14:04:35 +00:00
cgroup: initialize cgrp->allcg_node in init_cgroup_housekeeping()
Not strictly necessary but it's annoying to have uninitialized list_head around. Signed-off-by: Tejun Heo <tj@kernel.org> Acked-by: Li Zefan <lizefan@huawei.com>
This commit is contained in:
parent
175431635e
commit
2243076ad1
1 changed files with 1 additions and 0 deletions
|
@ -1381,6 +1381,7 @@ static void init_cgroup_housekeeping(struct cgroup *cgrp)
|
||||||
INIT_LIST_HEAD(&cgrp->children);
|
INIT_LIST_HEAD(&cgrp->children);
|
||||||
INIT_LIST_HEAD(&cgrp->files);
|
INIT_LIST_HEAD(&cgrp->files);
|
||||||
INIT_LIST_HEAD(&cgrp->css_sets);
|
INIT_LIST_HEAD(&cgrp->css_sets);
|
||||||
|
INIT_LIST_HEAD(&cgrp->allcg_node);
|
||||||
INIT_LIST_HEAD(&cgrp->release_list);
|
INIT_LIST_HEAD(&cgrp->release_list);
|
||||||
INIT_LIST_HEAD(&cgrp->pidlists);
|
INIT_LIST_HEAD(&cgrp->pidlists);
|
||||||
mutex_init(&cgrp->pidlist_mutex);
|
mutex_init(&cgrp->pidlist_mutex);
|
||||||
|
|
Loading…
Add table
Reference in a new issue