|
@@ -816,10 +816,8 @@ static int throtl_select_dispatch(struct throtl_data *td, struct bio_list *bl)
|
|
|
|
|
|
nr_disp += throtl_dispatch_tg(td, tg, bl);
|
|
nr_disp += throtl_dispatch_tg(td, tg, bl);
|
|
|
|
|
|
- if (tg->nr_queued[0] || tg->nr_queued[1]) {
|
|
|
|
|
|
+ if (tg->nr_queued[0] || tg->nr_queued[1])
|
|
tg_update_disptime(td, tg);
|
|
tg_update_disptime(td, tg);
|
|
- throtl_enqueue_tg(td, tg);
|
|
|
|
- }
|
|
|
|
|
|
|
|
if (nr_disp >= throtl_quantum)
|
|
if (nr_disp >= throtl_quantum)
|
|
break;
|
|
break;
|