Re: [PATCH -next] cgroup: increase maximum subsystem count from 16 to 32

From: Michal Koutný

Date: Fri Jan 30 2026 - 05:23:25 EST


On Thu, Jan 29, 2026 at 05:51:33PM +0800, Chen Ridong <chenridong@xxxxxxxxxxxxxxx> wrote:
> We compiled with 'make allmodconfig'.

A-ha.

> The BUILD_BUG_ON(CGROUP_SUBSYS_COUNT > 16) macro worked correctly.

Good.

> Can I propose increasing the maximum number now? If we switch certain configs to
> default N and then a new subsystem is added later, the default configuration may
> work fine, but it will become a problem under allmodconfig — which some users
> actually rely on.
>
> Besides, this shouldn't be a major change, right?

I'd like there to be gradual move away from legacy controllers code
captured in config defaults.
Could you adjust the commit message to stress out the allmodconfig tests?

The change is OK technically.

Thanks,
Michal

Attachment: signature.asc
Description: PGP signature