cgroup: reorganize cgroup_subtree_control_write()
authorTejun Heo <tj@kernel.org>
Tue, 8 Jul 2014 22:02:56 +0000 (18:02 -0400)
committerTejun Heo <tj@kernel.org>
Tue, 8 Jul 2014 22:02:56 +0000 (18:02 -0400)
commitc29adf24e0c443fb4433efb6a62bd91fdb739c34
tree99a57e738ef088cbadbb6073601361a8d46ebc82
parenta497c3ba1d97fc69c1e78e7b96435ba8c2cb42ee
cgroup: reorganize cgroup_subtree_control_write()

Make the following two reorganizations to
cgroup_subtree_control_write().  These are to prepare for future
changes and shouldn't cause any functional difference.

* Move availability above css offlining wait.

* Move cgrp->child_subsys_mask update above new css creation.

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