Merge branch 'master' into gfio
[fio.git] / backend.c
index 3a47152..38efc23 100644 (file)
--- a/backend.c
+++ b/backend.c
@@ -1068,7 +1068,7 @@ static void *thread_main(void *data)
                }
        }
 
-       if (o->cgroup_weight && cgroup_setup(td, cgroup_list, &cgroup_mnt))
+       if (td->o.cgroup && cgroup_setup(td, cgroup_list, &cgroup_mnt))
                goto err;
 
        errno = 0;