Message ID | 20220111115532.497117-5-ming.lei@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | block: improve iops limit throttle | expand |
diff --git a/block/blk-throttle.c b/block/blk-throttle.c index 7c462c006b26..8ba08425db06 100644 --- a/block/blk-throttle.c +++ b/block/blk-throttle.c @@ -1219,7 +1219,7 @@ static void blk_throtl_dispatch_work_fn(struct work_struct *work) if (!bio_list_empty(&bio_list_on_stack)) { blk_start_plug(&plug); while ((bio = bio_list_pop(&bio_list_on_stack))) - submit_bio_noacct(bio); + __submit_bio_noacct(bio, false); blk_finish_plug(&plug); } }
The bio has been checks already before throttling, so no need to check it again before dispatching it from throttle queue. Signed-off-by: Ming Lei <ming.lei@redhat.com> --- block/blk-throttle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)