Skip to content

Commit 5617cbe

Browse files
rhvgoyalJens Axboe
authored andcommitted
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>
1 parent 269f541 commit 5617cbe

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎block/blk-throttle.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1176,10 +1176,8 @@ int blk_throtl_init(struct request_queue *q)
11761176
td->root_tg = tg;
11771177

11781178
rcu_read_lock();
1179-
blkiocg_add_blkio_group(&blkio_root_cgroup, &tg->blkg, (void *)td,
1180-
0, BLKIO_POLICY_THROTL);
1179+
throtl_init_add_tg_lists(td, tg, &blkio_root_cgroup);
11811180
rcu_read_unlock();
1182-
throtl_add_group_to_td_list(td, tg);
11831181

11841182
/* Attach throtl data to request queue */
11851183
q->td = td;

0 commit comments

Comments
 (0)