Skip to content

Commit 27a6c5c

Browse files
kamalesh-babulalhtejun
authored andcommitted
cgroup: use legacy_name for cgroup v1 disable info
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>
1 parent 783a833 commit 27a6c5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/cgroup/cgroup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6127,7 +6127,7 @@ int __init cgroup_init(void)
61276127

61286128
if (cgroup1_ssid_disabled(ssid))
61296129
pr_info("Disabling %s control group subsystem in v1 mounts\n",
6130-
ss->name);
6130+
ss->legacy_name);
61316131

61326132
cgrp_dfl_root.subsys_mask |= 1 << ss->id;
61336133

0 commit comments

Comments
 (0)