]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
cgroup: increase maximum subsystem count from 16 to 32
authorChen Ridong <chenridong@huawei.com>
Sat, 31 Jan 2026 03:05:09 +0000 (03:05 +0000)
committerTejun Heo <tj@kernel.org>
Sun, 1 Feb 2026 16:34:15 +0000 (06:34 -1000)
commit5eab8c588bf37b7eb498f23a2ac3fb135c258e17
tree8b5282e42931f72dd6090dd7fd30bf6f85bb9721
parent0ff6402de70b3233b4df09df9e5072088a993148
cgroup: increase maximum subsystem count from 16 to 32

The current cgroup subsystem limit of 16 is insufficient, as the number of
existing subsystems has already reached this limit. When adding a new
subsystem that is not yet in the mainline kernel, building with
`make allmodconfig` requires first bypassing the
`BUILD_BUG_ON(CGROUP_SUBSYS_COUNT > 16)` restriction to allow compilation
to succeed. However, the kernel still fails to boot afterward.

This patch increases the maximum number of supported cgroup subsystems from
16 to 32, providing enough room for future subsystem additions.

Signed-off-by: Chen Ridong <chenridong@huawei.com>
Acked-by: Waiman Long <longman@redhat.com>
Tested-by: JP Kobryn <inwardvessel@gmail.com>
Acked-by: JP Kobryn <inwardvessel@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
include/linux/cgroup-defs.h
include/trace/events/cgroup.h
kernel/cgroup/cgroup-internal.h
kernel/cgroup/cgroup-v1.c
kernel/cgroup/cgroup.c
kernel/cgroup/debug.c