From: Tejun Heo Date: Tue, 13 May 2014 16:19:22 +0000 (-0400) Subject: cgroup: factor out cgroup_kn_lock_live() and cgroup_kn_unlock() X-Git-Tag: omap-for-v3.16/fixes-against-rc1~81^2~31 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9746d8da786bc79b3b4ae1baa0fbbc4b795c1b7;p=pandora-kernel.git 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 Acked-by: Li Zefan --- Reading git-diff-tree failed