diff options
author | Tejun Heo <tj@kernel.org> | 2012-03-19 18:10:59 -0400 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2012-03-20 07:47:48 -0400 |
commit | 2b566fa55b9a94b53217c2818e6c5e5756eeb1a1 (patch) | |
tree | d2186ebd18062172a7b0c83e31ca834f44ecdcc0 /block/blk-cgroup.c | |
parent | 598971bfbdfdc8701337dc1636c7919c44699914 (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.c | 19 |
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 *); |
48 | static int blkiocg_can_attach(struct cgroup_subsys *, struct cgroup *, | 48 | static int blkiocg_can_attach(struct cgroup_subsys *, struct cgroup *, |
49 | struct cgroup_taskset *); | 49 | struct cgroup_taskset *); |
50 | static void blkiocg_attach(struct cgroup_subsys *, struct cgroup *, | ||
51 | struct cgroup_taskset *); | ||
52 | static int blkiocg_pre_destroy(struct cgroup_subsys *, struct cgroup *); | 50 | static int blkiocg_pre_destroy(struct cgroup_subsys *, struct cgroup *); |
53 | static void blkiocg_destroy(struct cgroup_subsys *, struct cgroup *); | 51 | static void blkiocg_destroy(struct cgroup_subsys *, struct cgroup *); |
54 | static int blkiocg_populate(struct cgroup_subsys *, struct cgroup *); | 52 | static 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 | ||
1732 | static 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 | |||
1748 | static void blkcg_bypass_start(void) | 1729 | static void blkcg_bypass_start(void) |
1749 | __acquires(&all_q_mutex) | 1730 | __acquires(&all_q_mutex) |
1750 | { | 1731 | { |