[PATCH 3/8] cgroup: grab cgroup_mutex earlier in cgroup_subtree_control_write()

2014-05-06 Thread Tejun Heo
Move cgroup_lock_live_group() invocation upwards to right below cgroup_tree_mutex in cgroup_subtree_control_write(). This is to help the planned locking simplification. This doesn't make any userland-visible behavioral changes. Signed-off-by: Tejun Heo --- kernel/cgroup.c | 16

[PATCH 3/8] cgroup: grab cgroup_mutex earlier in cgroup_subtree_control_write()

2014-05-06 Thread Tejun Heo
Move cgroup_lock_live_group() invocation upwards to right below cgroup_tree_mutex in cgroup_subtree_control_write(). This is to help the planned locking simplification. This doesn't make any userland-visible behavioral changes. Signed-off-by: Tejun Heo t...@kernel.org --- kernel/cgroup.c | 16