Fix an inverted cgroup exit check
authorJens Axboe <jens.axboe@oracle.com>
Sat, 5 Dec 2009 21:30:04 +0000 (22:30 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Sat, 5 Dec 2009 21:30:04 +0000 (22:30 +0100)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
cgroup.c

index b65b1fb..29d89dd 100644 (file)
--- a/cgroup.c
+++ b/cgroup.c
@@ -150,7 +150,7 @@ void cgroup_shutdown(struct thread_data *td)
 {
        if (cgroup_check_fs(td))
                return;
-       if (!td->o.cgroup_weight && td->o.cgroup)
+       if (!td->o.cgroup_weight && !td->o.cgroup)
                return;
 
        cgroup_del_pid(td);