diff options
| author | Tejun Heo <[email protected]> | 2014-05-04 15:09:14 -0400 |
|---|---|---|
| committer | Tejun Heo <[email protected]> | 2014-05-04 15:09:14 -0400 |
| commit | 15a4c835e4ed3e60dd68727cd1907e3dd89563f4 (patch) | |
| tree | 849cef1af88267720ec75def1c05ffe0f41e310e /scripts/stackusage | |
| parent | ddfcadab35dda6e5bc23ccf1c3055ecb63a71e49 (diff) | |
cgroup, memcg: implement css->id and convert css_from_id() to use it
Until now, cgroup->id has been used to identify all the associated
csses and css_from_id() takes cgroup ID and returns the matching css
by looking up the cgroup and then dereferencing the css associated
with it; however, now that the lifetimes of cgroup and css are
separate, this is incorrect and breaks on the unified hierarchy when a
controller is disabled and enabled back again before the previous
instance is released.
This patch adds css->id which is a subsystem-unique ID and converts
css_from_id() to look up by the new css->id instead. memcg is the
only user of css_from_id() and also converted to use css->id instead.
For traditional hierarchies, this shouldn't make any functional
difference.
Signed-off-by: Tejun Heo <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: Jianyu Zhan <[email protected]>
Acked-by: Li Zefan <[email protected]>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions