]> git.ipfire.org Git - thirdparty/libvirt.git/commit
cgroup: reduce complexity of controller disabling
authorBoris Fiuczynski <fiuczy@linux.vnet.ibm.com>
Thu, 8 Dec 2016 13:24:18 +0000 (14:24 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 20 Dec 2016 10:18:09 +0000 (11:18 +0100)
commitdbeaa7e666149e435c5e2dd0e86af9986d78bbc1
treee0f60ddaf6315a8cd277067b556745284302ae72
parentdfcfe0bb9c1823a5a5351f63adf3d819e46f120a
cgroup: reduce complexity of controller disabling

This patch reduces the complexity of the filtering algorithm in
virCgroupDetect by first correcting the controller mask and then
checking for potential co-mounts without any correlating
controller mask modifications.

If you agree that this patch removes complexity and improves
readability it could simply be squashed into the first patch
of this series.

Signed-off-by: Boris Fiuczynski <fiuczy@linux.vnet.ibm.com>
Reviewed-by: Bjoern Walk <bwalk@linux.vnet.ibm.com>
Reviewed-by: Marc Hartmayer <mhartmay@linux.vnet.ibm.com>
src/util/vircgroup.c