]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - block/blk-throttle.c
blk-throttle: Use helper function to add root throtl group to lists
[karo-tx-linux.git] / block / blk-throttle.c
index 97ea7f82477db9fb647a8293489bfe0632b8c20a..b9412d1cea9e34a7fe74543dc4d883c5843ff8ec 100644 (file)
@@ -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;