diff options
author | Tejun Heo <tj@kernel.org> | 2014-05-14 09:15:01 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2014-05-14 09:15:01 -0400 |
commit | 4e4e28472365f8c7a7c55f6b5706f68bc40c5b13 (patch) | |
tree | 537d6c32f129fd90347463f5e645c6dfe51f5860 /net/unix | |
parent | 9e4173e1f24fa3bd562f13b92ee34c7dfb1db7c9 (diff) | |
download | linux-4e4e28472365f8c7a7c55f6b5706f68bc40c5b13.tar.bz2 |
cgroup: move cgroup->sibling unlinking to cgroup_put()
Move cgroup->sibling unlinking from cgroup_destroy_css_killed() to
cgroup_put(). This is later but still before the RCU grace period, so
it doesn't break css_next_child() although there now is a larger
window in which a dead cgroup is visible during css iteration. As css
iteration always could have included offline csses, this doesn't
affect correctness; however, it does make css_next_child() fall back
to reiterting mode more often. This also makes cgroup_put() directly
take cgroup_mutex, which limits where it can be called from. These
are not immediately problematic and will be dealt with later.
This change enables simplification of cgroup destruction path.
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Li Zefan <lizefan@huawei.com>
Diffstat (limited to 'net/unix')
0 files changed, 0 insertions, 0 deletions