Skip to content
Snippets Groups Projects
Commit 5617cbef authored by Vivek Goyal's avatar Vivek Goyal Committed by Jens Axboe
Browse files

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: default avatarVivek Goyal <vgoyal@redhat.com>
Signed-off-by: default avatarJens Axboe <jaxboe@fusionio.com>
parent 269f5415
No related branches found
No related tags found
No related merge requests found
...@@ -1176,10 +1176,8 @@ int blk_throtl_init(struct request_queue *q) ...@@ -1176,10 +1176,8 @@ int blk_throtl_init(struct request_queue *q)
td->root_tg = tg; td->root_tg = tg;
rcu_read_lock(); rcu_read_lock();
blkiocg_add_blkio_group(&blkio_root_cgroup, &tg->blkg, (void *)td, throtl_init_add_tg_lists(td, tg, &blkio_root_cgroup);
0, BLKIO_POLICY_THROTL);
rcu_read_unlock(); rcu_read_unlock();
throtl_add_group_to_td_list(td, tg);
/* Attach throtl data to request queue */ /* Attach throtl data to request queue */
q->td = td; q->td = td;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment