diff options
author | Tejun Heo <tj@kernel.org> | 2016-03-03 09:57:57 -0500 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2016-03-03 09:57:57 -0500 |
commit | 2378d8b8ba3d2adffb4f98c0c60ee2f448b3be69 (patch) | |
tree | f3278fe0e6d933d2a89f94575c747bbbdb5fd404 /drivers/crypto/n2_core.c | |
parent | fa06235b8eb0ae87a962e023243dba1eb4e7160d (diff) | |
download | linux-2378d8b8ba3d2adffb4f98c0c60ee2f448b3be69.tar.bz2 |
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>
Diffstat (limited to 'drivers/crypto/n2_core.c')
0 files changed, 0 insertions, 0 deletions