- status: open --> closed
Hi,
cgroup_delete_cgroup() returns -1 in multiple mount when the argument passed is "common_cgroup", which is a group which exist under two controllers. However the groups are deleted from both hierarchies.
The code snippet testing it is:
retval = cgroup_delete_cgroup(common_cgroup, 1);
if (!retval) {
/* Check if the group is deleted from both dir tree */
if (group_exist(path1_common_group) == -1) {
if (group_exist(path2_common_group) == -1)
printf("Test[1:%2d]\tPASS: group deleted globally\n", ++i);
else
printf("Test[1:%2d]\tPASS: group not deleted globally\n", ++i);
} else {
printf("Test[1:%2d]\tFAIL: group still found in fs\n", ++i);
}
} else {
printf("Test[1:%2d]\tFAIL: cgroup_delete_cgroup() retval=%d\n", ++i, retval);
}
I am posting the patch containing this code.
thanks
Sudhir