[PATCH 6/8] cgroup: use cgroup_kn_lock_live() in other cgroup kernfs methods

2014-05-06 Thread Tejun Heo
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,

[PATCH 6/8] cgroup: use cgroup_kn_lock_live() in other cgroup kernfs methods

2014-05-06 Thread Tejun Heo
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,