summaryrefslogtreecommitdiff
path: root/cgroup.h
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2009-12-04 19:54:18 +0100
committerJens Axboe <jens.axboe@oracle.com>2009-12-04 19:54:18 +0100
commitdae5341c3059273242598de2bc27cc9f18c627c1 (patch)
treeb45cbd9431f0593b51427ea16a0b199d272d5bea /cgroup.h
parent3858bf9eb509136b800cda1a08247e9c0ff167b9 (diff)
downloadfio-dae5341c3059273242598de2bc27cc9f18c627c1.tar.gz
fio-dae5341c3059273242598de2bc27cc9f18c627c1.tar.bz2
Move cgroup list to proper shared storage
Otherwise we have per-job lists, and that doesn't help very much with cleaning up. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'cgroup.h')
-rw-r--r--cgroup.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/cgroup.h b/cgroup.h
index 1c67ba80..b246ef86 100644
--- a/cgroup.h
+++ b/cgroup.h
@@ -3,14 +3,14 @@
#ifdef FIO_HAVE_CGROUPS
-int cgroup_setup(struct thread_data *td);
+int cgroup_setup(struct thread_data *td, struct flist_head *list);
void cgroup_shutdown(struct thread_data *td);
-void cgroup_kill(void);
+void cgroup_kill(struct flist_head *list);
#else
-static inline int cgroup_setup(struct thread_data *td)
+static inline int cgroup_setup(struct thread_data *td, struct flist_head *list);
{
td_verror(td, EINVAL, "cgroup_setup");
return 1;
@@ -20,7 +20,7 @@ static inline void cgroup_shutdown(struct thread_data *td)
{
}
-void cgroup_kill(void)
+void cgroup_kill(struct flist_head *list);
{
}