Re: [PATCH] cgroup: Show control files in cgroup2 root after mount

Tejun Heo
2017-07-18T21:06:58Z

On Tue, Jul 18, 2017 at 04:50:10PM -0400, Tejun Heo wrote:
> Heh, I'm really confused. If I do the same thing, I get the following
> result which makes sense as the files would be activated in
> cgroup_apply_cftypes() when the debug controller is registered during
> boot.
>
> # mkdir /cgroup2
> # mount -t cgroup2 cgroup2 /cgroup2
> # ls /cgroup2/
> cgroup.controllers debug.current_css_set
> cgroup.procs debug.current_css_set_cg_links
> cgroup.subtree_control debug.current_css_set_refcount
> cgroup.threads debug.masks
> debug.csses debug.taskcount
> debug.css_links

Never mind. I can repro after getting rid of some automatic umounts
from rc.local. Will find out what went wrong.

Thanks!

--
tejun