]> git.baikalelectronics.ru Git - kernel.git/commit
cgroup: Display legacy cgroup files on default hierarchy
authorVivek Goyal <vgoyal@redhat.com>
Fri, 8 Aug 2014 15:44:03 +0000 (11:44 -0400)
committerTejun Heo <tj@kernel.org>
Fri, 22 Aug 2014 17:20:40 +0000 (13:20 -0400)
commit5072406913cd23ff1452750b566dcc7cb48027bb
tree32e4be27a8840f6fbfc0f91f59d4e48ee4e91a51
parent75610628a055ea4755e4d5042d6b896392333b01
cgroup: Display legacy cgroup files on default hierarchy

Kernel command line parameter cgroup__DEVEL__legacy_files_on_dfl forces
legacy cgroup files to show up on default hierarhcy if susbsystem does
not have any files defined for default hierarchy.

But this seems to be working only if legacy files are defined in
ss->legacy_cftypes. If one adds some cftypes later using
cgroup_add_legacy_cftypes(), these files don't show up on default
hierarchy.  Update the function accordingly so that the dynamically
added legacy files also show up in the default hierarchy if the target
subsystem is also using the base legacy files for the default
hierarchy.

tj: Patch description and comment updates.

Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup.c