fio: Add to cgroup if parameter "cgroup" is enabled.
[fio.git] / backend.c
index f4bc553b0a5ee9dab880685f1844221975d4c64f..e1dc0ac8b154a662866eea6ecc381921f5000cf0 100644 (file)
--- a/backend.c
+++ b/backend.c
@@ -1055,7 +1055,7 @@ static void *thread_main(void *data)
                }
        }
 
                }
        }
 
-       if (td->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;