]> git.baikalelectronics.ru Git - kernel.git/commit
cgroup: use rculist ops for cgroup->children
authorTejun Heo <tj@kernel.org>
Fri, 9 Nov 2012 17:12:29 +0000 (09:12 -0800)
committerTejun Heo <tj@kernel.org>
Fri, 9 Nov 2012 17:12:29 +0000 (09:12 -0800)
commit6f73e4e21888265547e6605af19b94f848c77f7c
tree16d837a4479b25d379b558d850431fb3b7291dd1
parent6b6ec29a045ce38d86d329d848e44d4ca3525b3e
cgroup: use rculist ops for cgroup->children

Use RCU safe list operations for cgroup->children.  This will be used
to implement cgroup children / descendant walking which can be used by
controllers.

Note that cgroup_create() now puts a new cgroup at the end of the
->children list instead of head.  This isn't strictly necessary but is
done so that the iteration order is more conventional.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Michal Hocko <mhocko@suse.cz>
Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Acked-by: Li Zefan <lizefan@huawei.com>
include/linux/cgroup.h
kernel/cgroup.c