Tejun Heo 04313591ae cgroup: allocate 2x cgrp_cset_links when setting up a new root
During prep, cgroup_setup_root() allocates cgrp_cset_links matching
the number of existing css_sets to later link the new root.  This is
fine for now as the only operation which can happen inbetween is
rebind_subsystems() and rebinding of empty subsystems doesn't create
new css_sets.

However, while not yet allowed, with the recent reimplementation,
rebind_subsystems() can rebind subsystems with descendant csses and
thus can create new css_sets.  This patch makes cgroup_setup_root()
allocate 2x of the existing css_sets so that later use of live
subsystem rebinding doesn't blow up.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Zefan Li <lizefan@huawei.com>
2016-03-03 09:58:01 -05:00
..
2016-01-12 17:06:53 -05:00
2015-12-04 22:46:25 +01:00
2016-01-21 00:43:21 +01:00
2015-11-19 17:51:48 +01:00
2015-12-14 14:54:37 -05:00
2016-01-14 16:00:49 -08:00
2015-11-23 09:44:58 +01:00
2016-01-20 17:09:18 -08:00