summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorVivek Goyal <vgoyal@redhat.com>2011-05-19 23:38:26 +0400
committerJens Axboe <jaxboe@fusionio.com>2011-05-20 22:34:52 +0400
commit5617cbef7723952cbdff28c7a10ff8a254945f4f (patch)
tree1922ac8f6011d5ccc92c668448971a12cc6df909 /block
parent269f541555d8f5da322d592fb3e13e23ed62d80c (diff)
downloadlinux-5617cbef7723952cbdff28c7a10ff8a254945f4f.tar.xz
blk-throttle: Use helper function to add root throtl group to lists
Use same helper function for root group as we use with dynamically allocated groups to add it to various lists. Signed-off-by: Vivek Goyal <vgoyal@redhat.com> Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'block')
-rw-r--r--block/blk-throttle.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/block/blk-throttle.c b/block/blk-throttle.c
index 97ea7f82477d..b9412d1cea9e 100644
--- a/block/blk-throttle.c
+++ b/block/blk-throttle.c
@@ -1176,10 +1176,8 @@ int blk_throtl_init(struct request_queue *q)
td->root_tg = tg;
rcu_read_lock();
- blkiocg_add_blkio_group(&blkio_root_cgroup, &tg->blkg, (void *)td,
- 0, BLKIO_POLICY_THROTL);
+ throtl_init_add_tg_lists(td, tg, &blkio_root_cgroup);
rcu_read_unlock();
- throtl_add_group_to_td_list(td, tg);
/* Attach throtl data to request queue */
q->td = td;