aboutsummaryrefslogtreecommitdiffstats
path: root/block/blk-cgroup.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2012-03-19 18:10:59 -0400
committerJens Axboe <axboe@kernel.dk>2012-03-20 07:47:48 -0400
commit2b566fa55b9a94b53217c2818e6c5e5756eeb1a1 (patch)
treed2186ebd18062172a7b0c83e31ca834f44ecdcc0 /block/blk-cgroup.c
parent598971bfbdfdc8701337dc1636c7919c44699914 (diff)
block: remove ioc_*_changed()
After the previous patch to cfq, there's no ioc_get_changed() user left. This patch yanks out ioc_{ioprio|cgroup|get}_changed() and all related stuff. Signed-off-by: Tejun Heo <tj@kernel.org> Cc: Vivek Goyal <vgoyal@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-cgroup.c')
-rw-r--r--block/blk-cgroup.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/block/blk-cgroup.c b/block/blk-cgroup.c
index 30e07308db24..a74019b67311 100644
--- a/block/blk-cgroup.c
+++ b/block/blk-cgroup.c
@@ -47,8 +47,6 @@ static struct cgroup_subsys_state *blkiocg_create(struct cgroup_subsys *,
47 struct cgroup *); 47 struct cgroup *);
48static int blkiocg_can_attach(struct cgroup_subsys *, struct cgroup *, 48static int blkiocg_can_attach(struct cgroup_subsys *, struct cgroup *,
49 struct cgroup_taskset *); 49 struct cgroup_taskset *);
50static void blkiocg_attach(struct cgroup_subsys *, struct cgroup *,
51 struct cgroup_taskset *);
52static int blkiocg_pre_destroy(struct cgroup_subsys *, struct cgroup *); 50static int blkiocg_pre_destroy(struct cgroup_subsys *, struct cgroup *);
53static void blkiocg_destroy(struct cgroup_subsys *, struct cgroup *); 51static void blkiocg_destroy(struct cgroup_subsys *, struct cgroup *);
54static int blkiocg_populate(struct cgroup_subsys *, struct cgroup *); 52static int blkiocg_populate(struct cgroup_subsys *, struct cgroup *);
@@ -63,7 +61,6 @@ struct cgroup_subsys blkio_subsys = {
63 .name = "blkio", 61 .name = "blkio",
64 .create = blkiocg_create, 62 .create = blkiocg_create,
65 .can_attach = blkiocg_can_attach, 63 .can_attach = blkiocg_can_attach,
66 .attach = blkiocg_attach,
67 .pre_destroy = blkiocg_pre_destroy, 64 .pre_destroy = blkiocg_pre_destroy,
68 .destroy = blkiocg_destroy, 65 .destroy = blkiocg_destroy,
69 .populate = blkiocg_populate, 66 .populate = blkiocg_populate,
@@ -1729,22 +1726,6 @@ static int blkiocg_can_attach(struct cgroup_subsys *ss, struct cgroup *cgrp,
1729 return ret; 1726 return ret;
1730} 1727}
1731 1728
1732static void blkiocg_attach(struct cgroup_subsys *ss, struct cgroup *cgrp,
1733 struct cgroup_taskset *tset)
1734{
1735 struct task_struct *task;
1736 struct io_context *ioc;
1737
1738 cgroup_taskset_for_each(task, cgrp, tset) {
1739 /* we don't lose anything even if ioc allocation fails */
1740 ioc = get_task_io_context(task, GFP_ATOMIC, NUMA_NO_NODE);
1741 if (ioc) {
1742 ioc_cgroup_changed(ioc);
1743 put_io_context(ioc);
1744 }
1745 }
1746}
1747
1748static void blkcg_bypass_start(void) 1729static void blkcg_bypass_start(void)
1749 __acquires(&all_q_mutex) 1730 __acquires(&all_q_mutex)
1750{ 1731{