]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
abstraction-map: Add cpuset.{cpus,mems} <-> cpuset.{cpus,mems} mapping
authorTom Hromatka <tom.hromatka@oracle.com>
Wed, 15 Dec 2021 20:48:56 +0000 (20:48 +0000)
committerTom Hromatka <tom.hromatka@oracle.com>
Thu, 3 Feb 2022 21:42:36 +0000 (14:42 -0700)
Add a passthrough mapping for:
cpuset.cpus <-> cpuset.cpus
cpuset.mems <-> cpuset.mems

Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
Reviewed-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
src/abstraction-map.c

index 66066e64bdef50848242004f65b2c425460c613e..4b792050973e841b329454339ad53eca2af16634 100644 (file)
@@ -41,6 +41,8 @@ const struct cgroup_abstraction_map cgroup_v1_to_v2_map[] = {
                "cpuset.cpus.effective", NULL},
        {cgroup_convert_name_only, "cpuset.effective_mems", NULL,
                "cpuset.mems.effective", NULL},
+       {cgroup_convert_passthrough, "cpuset.cpus", NULL, "cpuset.cpus", NULL},
+       {cgroup_convert_passthrough, "cpuset.mems", NULL, "cpuset.mems", NULL},
 };
 const int cgroup_v1_to_v2_map_sz = sizeof(cgroup_v1_to_v2_map) /
                                   sizeof(cgroup_v1_to_v2_map[0]);
@@ -55,6 +57,8 @@ const struct cgroup_abstraction_map cgroup_v2_to_v1_map[] = {
                "cpuset.effective_cpus", NULL},
        {cgroup_convert_name_only, "cpuset.mems.effective", NULL,
                "cpuset.effective_mems", NULL},
+       {cgroup_convert_passthrough, "cpuset.cpus", NULL, "cpuset.cpus", NULL},
+       {cgroup_convert_passthrough, "cpuset.mems", NULL, "cpuset.mems", NULL},
 };
 const int cgroup_v2_to_v1_map_sz = sizeof(cgroup_v2_to_v1_map) /
                                   sizeof(cgroup_v2_to_v1_map[0]);