diff options
author | 2024-09-09 18:32:22 +0200 | |
---|---|---|
committer | 2024-09-10 10:03:43 -1000 | |
commit | 3c41382e920f1dd5c9f432948fe799c07af1cced (patch) | |
tree | 0973009f5ecace4b8bc82b7c60c505e8f68995ac /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | cgroup/cpuset: Expose cpuset filesystem with cpuset v1 only (diff) | |
download | wireguard-linux-3c41382e920f1dd5c9f432948fe799c07af1cced.tar.xz wireguard-linux-3c41382e920f1dd5c9f432948fe799c07af1cced.zip |
cgroup: Disallow mounting v1 hierarchies without controller implementation
The configs that disable some v1 controllers would still allow mounting
them but with no controller-specific files. (Making such hierarchies
equivalent to named v1 hierarchies.) To achieve behavior consistent with
actual out-compilation of a whole controller, the mounts should treat
respective controllers as non-existent.
Wrap implementation into a helper function, leverage legacy_files to
detect compiled out controllers. The effect is that mounts on v1 would
fail and produce a message like:
[ 1543.999081] cgroup: Unknown subsys name 'memory'
Signed-off-by: Michal Koutný <mkoutny@suse.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions