chiark / gitweb /
cgroup-util: cache all cg_is_*_wanted answers, disable /sys/fs/cgroups/unified on...
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 22 Feb 2017 17:57:43 +0000 (12:57 -0500)
committerSven Eden <yamakuzure@gmx.net>
Mon, 17 Jul 2017 15:58:36 +0000 (17:58 +0200)
commitcdf270a6e55be8db9bf5667b1d295916aff13783
tree1bc9c0a5fe747e6dcf9f3fc87047f3ace538b5ec
parent2dcd4294c12c20431474542b455584e83b3f7af9
cgroup-util: cache all cg_is_*_wanted answers, disable /sys/fs/cgroups/unified on unified

If we encounter an error in proc cmdline parsing, just treat that as permanent,
i.e. the same as if the option was not specified. Realistically, it is better
to use the same condition for all related mounts, then to have e.g.
/sys/fs/cgroup mounted and /sys/fs/cgroup/unified not. If we find something is
mounted and base our answer on that, cache that result too.

Fix the conditions so that if "unified" is used, make sure any "hybrid" mounts
are not mounted.
src/basic/cgroup-util.c