Tejun Heo 8bb5ef79bc cgroup: make sure a parent css isn't freed before its children
There are three subsystem callbacks in css shutdown path -
css_offline(), css_released() and css_free().  Except for
css_released(), cgroup core didn't guarantee the order of invocation.
css_offline() or css_free() could be called on a parent css before its
children.  This behavior is unexpected and led to bugs in cpu and
memory controller.

The previous patch updated ordering for css_offline() which fixes the
cpu controller issue.  While there currently isn't a known bug caused
by misordering of css_free() invocations, let's fix it too for
consistency.

css_free() ordering can be trivially fixed by moving putting of the
parent css below css_free() invocation.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
2016-01-22 10:42:58 -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