Skip to content

Commit

Permalink
blk-throttle: Use helper function to add root throtl group to lists
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vivek Goyal authored and Jens Axboe committed May 20, 2011
1 parent 269f541 commit 5617cbe
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions block/blk-throttle.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5617cbe

Please sign in to comment.