From: Serge Hallyn Date: Thu, 23 Jan 2014 19:02:08 +0000 (-0600) Subject: Revert "cgroupfs: need the full path to setup cpuset" X-Git-Tag: lxc-1.0.0.beta3~44 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fec822c4a0612211ed8f32e662183e1cee4f1489;p=thirdparty%2Flxc.git Revert "cgroupfs: need the full path to setup cpuset" This reverts commit 47f5ede0ec09b393779a7755aa36dc665e2e8fa5. --- diff --git a/src/lxc/cgroup.c b/src/lxc/cgroup.c index 9513e9668..0898f4676 100644 --- a/src/lxc/cgroup.c +++ b/src/lxc/cgroup.c @@ -958,20 +958,12 @@ struct cgroup_process_info *lxc_cgroupfs_create(const char *name, const char *pa goto cleanup_from_error; } else if (r == 0) { /* successfully created */ - char *full_path = NULL; r = lxc_grow_array((void ***)&info_ptr->created_paths, &info_ptr->created_paths_capacity, info_ptr->created_paths_count + 1, 8); if (r < 0) goto cleanup_from_error; info_ptr->created_paths[info_ptr->created_paths_count++] = current_entire_path; - - full_path = cgroup_to_absolute_path( - info_ptr->designated_mount_point, - current_entire_path, NULL); - if (!full_path) - goto cleanup_from_error; setup_cpuset_if_needed(info_ptr->hierarchy->subsystems, - full_path); - free(full_path); + current_entire_path); } else { /* if we didn't create the cgroup, then we have to make sure that * further cgroups will be created properly