cgroup: keep css_set and task lists in chronological order
authorTejun Heo <tj@kernel.org>
Thu, 15 Oct 2015 20:41:51 +0000 (16:41 -0400)
committerTejun Heo <tj@kernel.org>
Thu, 15 Oct 2015 20:41:51 +0000 (16:41 -0400)
commit389b9c1bc927c8194a49f5f0c7e069ed0ec79b9e
tree67c3faae1cd833128a515a19e212bdee4d48b36f
parent91486f61f486662c27ef86dd910f875832e3a5de
cgroup: keep css_set and task lists in chronological order

css task iteration will be updated to not leak cgroup internal locking
to iterator users.  In preparation, update css_set and task lists to
be in chronological order.

For tasks, as migration path is already using list_splice_tail_init(),
only cgroup_enable_task_cg_lists() and cgroup_post_fork() need
updating.  For css_sets, link_css_set() is the only place which needs
to be updated.

Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup.c