]> git.baikalelectronics.ru Git - kernel.git/commit
cgroup: factor out cgroup_kn_lock_live() and cgroup_kn_unlock()
authorTejun Heo <tj@kernel.org>
Tue, 13 May 2014 16:19:22 +0000 (12:19 -0400)
committerTejun Heo <tj@kernel.org>
Tue, 13 May 2014 16:19:22 +0000 (12:19 -0400)
commita082bed6f9c5c58676e4d02b37dd89f9b867a35e
tree4bc006ff8f7df66d8df51f51cd0e285797712ae9
parente46e5d65359c2f0c6e6f594e47051b252f45a3c2
cgroup: factor out cgroup_kn_lock_live() and cgroup_kn_unlock()

cgroup_mkdir(), cgroup_rmdir() and cgroup_subtree_control_write()
share the logic to break active protection so that they can grab
cgroup_tree_mutex which nests above active protection and/or remove
self.  Factor out this logic into cgroup_kn_lock_live() and
cgroup_kn_unlock().

This patch doesn't introduce any functional changes.

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