diff options
author | Vivek Goyal <vgoyal@redhat.com> | 2011-05-19 15:38:26 -0400 |
---|---|---|
committer | Jens Axboe <jaxboe@fusionio.com> | 2011-05-20 14:34:52 -0400 |
commit | 5617cbef7723952cbdff28c7a10ff8a254945f4f (patch) | |
tree | 1922ac8f6011d5ccc92c668448971a12cc6df909 /block | |
parent | 269f541555d8f5da322d592fb3e13e23ed62d80c (diff) |
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.c | 4 |
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) | |||
1176 | td->root_tg = tg; | 1176 | td->root_tg = tg; |
1177 | 1177 | ||
1178 | rcu_read_lock(); | 1178 | rcu_read_lock(); |
1179 | blkiocg_add_blkio_group(&blkio_root_cgroup, &tg->blkg, (void *)td, | 1179 | throtl_init_add_tg_lists(td, tg, &blkio_root_cgroup); |
1180 | 0, BLKIO_POLICY_THROTL); | ||
1181 | rcu_read_unlock(); | 1180 | rcu_read_unlock(); |
1182 | throtl_add_group_to_td_list(td, tg); | ||
1183 | 1181 | ||
1184 | /* Attach throtl data to request queue */ | 1182 | /* Attach throtl data to request queue */ |
1185 | q->td = td; | 1183 | q->td = td; |