From 75093be3c94c40eb0e40d0dec7bde2a42692e3ed Mon Sep 17 00:00:00 2001 From: Michael Crosby Date: Mon, 17 Nov 2014 19:05:58 -0800 Subject: [PATCH] Always join fs.Cpuset reguardless of value Signed-off-by: Michael Crosby --- cgroups/fs/cpuset.go | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/cgroups/fs/cpuset.go b/cgroups/fs/cpuset.go index 71b5588b..54d2ed57 100644 --- a/cgroups/fs/cpuset.go +++ b/cgroups/fs/cpuset.go @@ -14,17 +14,11 @@ type CpusetGroup struct { } func (s *CpusetGroup) Set(d *data) error { - // we don't want to join this cgroup unless it is specified - if d.c.CpusetCpus != "" { - dir, err := d.path("cpuset") - if err != nil { - return err - } - - return s.SetDir(dir, d.c.CpusetCpus, d.pid) + dir, err := d.path("cpuset") + if err != nil { + return err } - - return nil + return s.SetDir(dir, d.c.CpusetCpus, d.pid) } func (s *CpusetGroup) Remove(d *data) error {