linux_dsm_epyc7002/kernel/cgroup
Tejun Heo 7af608e4f9 cgroup: create dfl_root files on subsys registration
On subsystem registration, css_populate_dir() is not called on the new
root css, so the interface files for the subsystem on cgrp_dfl_root
aren't created on registration.  This is a residue from the days when
cgrp_dfl_root was used only as the parking spot for unused subsystems,
which no longer is true as it's used as the root for cgroup2.

This is often fine as later operations tend to create them as a part
of mount (cgroup1) or subtree_control operations (cgroup2); however,
it's not difficult to mount cgroup2 with the controller interface
files missing as Waiman found out.

Fix it by invoking css_populate_dir() on the root css on subsys
registration.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-and-tested-by: Waiman Long <longman@redhat.com>
Cc: stable@vger.kernel.org # v4.5+
Signed-off-by: Tejun Heo <tj@kernel.org>
2017-07-18 18:11:43 -04:00
..
cgroup-internal.h cgroup: don't call migration methods if there are no tasks to migrate 2017-07-08 07:37:50 -04:00
cgroup-v1.c cgroup: Move debug cgroup to its own file 2017-06-14 16:01:21 -04:00
cgroup.c cgroup: create dfl_root files on subsys registration 2017-07-18 18:11:43 -04:00
cpuset.c mm, cpuset: always use seqlock when changing task's nodemask 2017-07-06 16:24:34 -07:00
debug.c cgroup: fix lockdep warning in debug controller 2017-06-14 16:01:41 -04:00
freezer.c cgroup: move cgroup files under kernel/cgroup/ 2016-12-27 14:49:05 -05:00
Makefile cgroup: Move debug cgroup to its own file 2017-06-14 16:01:21 -04:00
namespace.c kernel: convert cgroup_namespace.count from atomic_t to refcount_t 2017-03-06 14:55:22 -05:00
pids.c cgroup/pids: remove spurious suspicious RCU usage warning 2017-03-06 15:11:29 -05:00
rdma.c rdmacg: Fixed uninitialized current resource usage 2017-01-10 12:52:32 -05:00