diff options
| author | Tejun Heo <tj@kernel.org> | 2016-03-03 09:57:57 -0500 |
|---|---|---|
| committer | Michael Bestas <mkbestas@lineageos.org> | 2022-04-19 00:50:55 +0300 |
| commit | 3e88a756d00153c44edcf76a8c55f7f0d7f9172e (patch) | |
| tree | 6d74309a041eb7e6a704c09f7569fcbca57e8ab9 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
| parent | 97d8ea8e7771b56dac2f7620b79aa04d932c529b (diff) | |
cgroup: re-hash init_css_set after subsystems are initialized
css_sets are hashed by their subsys[] contents and in cgroup_init()
init_css_set is hashed early, before subsystem inits, when all entries
in its subsys[] are NULL, so that cgroup_dfl_root initialization can
find and link to it. As subsystems are initialized,
init_css_set.subsys[] is filled up but the hashing is never updated
making init_css_set hashed in the wrong place. While incorrect, this
doesn't cause a critical failure as css_set management code would
create an identical css_set dynamically.
Fix it by rehashing init_css_set after subsystems are initialized.
While at it, drop unnecessary @key local variable.
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Zefan Li <lizefan@huawei.com>
Signed-off-by: Chatur27 <jasonbright2709@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions
