Skip to content

Commit 32e3374

Browse files
Guoqing Jiangaxboe
authored andcommitted
blk-throttle: remove tg_drain_bios
After blk_throtl_drain is removed, there is no caller of tg_drain_bios, so remove it as well. Signed-off-by: Guoqing Jiang <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent b774123 commit 32e3374

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

block/blk-throttle.c

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2358,28 +2358,6 @@ void blk_throtl_bio_endio(struct bio *bio)
23582358
}
23592359
#endif
23602360

2361-
/*
2362-
* Dispatch all bios from all children tg's queued on @parent_sq. On
2363-
* return, @parent_sq is guaranteed to not have any active children tg's
2364-
* and all bios from previously active tg's are on @parent_sq->bio_lists[].
2365-
*/
2366-
static void tg_drain_bios(struct throtl_service_queue *parent_sq)
2367-
{
2368-
struct throtl_grp *tg;
2369-
2370-
while ((tg = throtl_rb_first(parent_sq))) {
2371-
struct throtl_service_queue *sq = &tg->service_queue;
2372-
struct bio *bio;
2373-
2374-
throtl_dequeue_tg(tg);
2375-
2376-
while ((bio = throtl_peek_queued(&sq->queued[READ])))
2377-
tg_dispatch_one_bio(tg, bio_data_dir(bio));
2378-
while ((bio = throtl_peek_queued(&sq->queued[WRITE])))
2379-
tg_dispatch_one_bio(tg, bio_data_dir(bio));
2380-
}
2381-
}
2382-
23832361
int blk_throtl_init(struct request_queue *q)
23842362
{
23852363
struct throtl_data *td;

0 commit comments

Comments
 (0)