cgroup: use legacy_name for cgroup v1 disable info
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Fri, 6 Oct 2023 11:50:32 +0000 (17:20 +0530)
committerTejun Heo <tj@kernel.org>
Mon, 9 Oct 2023 16:46:56 +0000 (06:46 -1000)
cgroup v1 or v2 or both controller names can be passed as arguments to
the 'cgroup_no_v1' kernel parameter, though most of the controller's
names are the same for both cgroup versions. This can be confusing when
both versions are used interchangeably, i.e., passing cgroup_no_v1=io

$ sudo dmesg |grep cgroup
...
cgroup: Disabling io control group subsystem in v1 mounts
cgroup: Disabled controller 'blkio'

Make it consistent across the pr_info()'s, by using ss->legacy_name, as
the subsystem name, while printing the cgroup v1 controller disabling
information in cgroup_init().

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/cgroup.c

index 059cd5651d41ed5959267b72cb7b1c4a10893ca9..c09531bace38ccbef5616e2abd4a3810909eecc4 100644 (file)
@@ -6127,7 +6127,7 @@ int __init cgroup_init(void)
 
                if (cgroup1_ssid_disabled(ssid))
                        pr_info("Disabling %s control group subsystem in v1 mounts\n",
-                               ss->name);
+                               ss->legacy_name);
 
                cgrp_dfl_root.subsys_mask |= 1 << ss->id;