There is a bug which causes the initialised configuration will
be bogus or does not work at all and majority of tools does not work well.
The situation happens when multiple mount points are mounted for one hierarchy 
and the hierarchy
have multiple controllers:

example:

# lssubsys
cpu,cpuacct /mnt/cgroups/cpu
cpuacct /cgroup/cpu
memory /cgroup/memory

# cat /proc/mounts | grep cgroup
cpu /mnt/cgroups/cpu cgroup rw,relatime,cpuacct,cpu 0 0
cgroup /cgroup/cpu cgroup rw,relatime,cpuacct,cpu 0 0
cgroup /cgroup/memory cgroup rw,relatime,memory 0 0



Signed-off-by: Ivana Hutarova Varekova <[email protected]>
Acked-by: Jan Safranek <[email protected]>
---

 src/api.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/api.c b/src/api.c
index 7e2903d..859190a 100644
--- a/src/api.c
+++ b/src/api.c
@@ -826,7 +826,7 @@ int cgroup_init(void)
                        if (duplicate) {
                                cgroup_dbg("controller %s is already mounted on 
%s\n",
                                        mntopt, cg_mount_table[j].path);
-                               continue;
+                               break;
                        }
 
                        strcpy(cg_mount_table[found_mnt].name, controllers[i]);


------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Libcg-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to