From: Tejun Heo Date: Tue, 13 May 2014 16:19:23 +0000 (-0400) Subject: cgroup: use cgroup_kn_lock_live() in other cgroup kernfs methods X-Git-Tag: omap-for-v3.16/fixes-against-rc1~81^2~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e76ecaeef65c497153ceacf59c2e21c070d43f64;p=pandora-kernel.git cgroup: use cgroup_kn_lock_live() in other cgroup kernfs methods Make __cgroup_procs_write() and cgroup_release_agent_write() use cgroup_kn_lock_live() and cgroup_kn_unlock() instead of cgroup_lock_live_group(). This puts the operations under both cgroup_tree_mutex and cgroup_mutex protection without circular dependency from kernfs active protection. Also, this means that cgroup_mutex is no longer nested below kernfs active protection. There is no longer any place where the two locks interact. This leaves cgroup_lock_live_group() without any user. Removed. This will help simplifying cgroup locking. Signed-off-by: Tejun Heo Acked-by: Li Zefan --- Reading git-diff-tree failed