mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-24 19:10:26 +00:00
cgroup: Print message when /proc/cgroups is read on v2-only system
As a followup to commits6c2920926b("cgroup: replace unified-hierarchy.txt with a proper cgroup v2 documentation") andab03125268("cgroup: Show # of subsystem CSSes in cgroup.stat"), add a runtime message to users who read status of controllers in /proc/cgroups on v2-only system. The detection is based on a) no controllers are attached to v1, b) default hierarchy is mounted (the latter is for setups that never mount v2 but read /proc/cgroups upon boot when controllers default to v2, so that this code may be backported to older kernels). Signed-off-by: Michal Koutný <mkoutny@suse.com> Acked-by: Waiman Long <longman@redhat.com> Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
parent
77bbb259db
commit
a0ab145322
3 changed files with 9 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue