Merge branch 'master' into gfio
[fio.git] / backend.c
index 3a471521d6931508335f9ede44b3ab5aae1598f1..38efc2307809266d234cfeb183e33bda94b5ea68 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;
                goto err;
 
        errno = 0;