]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
Revert "api: cgroup v2 – read subtree_control of the leaf node"
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Wed, 12 Apr 2023 14:51:17 +0000 (20:21 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Wed, 12 Apr 2023 17:07:05 +0000 (11:07 -0600)
commit59dff6c981b79ab5e92179e187fc065c53aef54f
tree3ac56827a0cd2126b94f72f072811e8fd45fd8ea
parent9479fedff122ea44c887efafde2aaa3a51f0c623
Revert "api: cgroup v2 – read subtree_control of the leaf node"

This reverts commit 39012eeefa454e09fc4192cacddb508ee00abee6.

As per the no internal process constraint, of cgroup v2 no controller
should be enabled in the leaf cgroup node. This patch breaks this
constraint by assuming the controllers are enabled until the leaf node
of the hierarchy. Let's revert to the original approach of reading
until the parent of the leaf cgroup node.

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