Re: [PATCH 4/4] cgroup: Do not report unavailable v1 controllers in /proc/cgroups

From: Tejun Heo
Date: Tue Sep 10 2024 - 16:05:37 EST


On Mon, Sep 09, 2024 at 06:32:23PM +0200, Michal Koutný wrote:
> This is a followup to CONFIG-urability of cpuset and memory controllers
> for v1 hierarchies. Make the output in /proc/cgroups reflect that
> !CONFIG_CPUSETS_V1 is like !CONFIG_CPUSETS and
> !CONFIG_MEMCG_V1 is like !CONFIG_MEMCG.
>
> The intended effect is that hiding the unavailable controllers will hint
> users not to try mounting them on v1.
>
> Signed-off-by: Michal Koutný <mkoutny@xxxxxxxx>

Applied to cgroup/for-6.12 w/ Waiman's reviewed-by.

Thanks.

--
tejun