Message ID | 20220110075141.389532-3-ming.lei@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | block/dm: add resubmit_bio_noacct for fixing iops throttling | expand |
diff --git a/drivers/md/dm.c b/drivers/md/dm.c index 280918cdcabd..8a58379e737c 100644 --- a/drivers/md/dm.c +++ b/drivers/md/dm.c @@ -1562,7 +1562,7 @@ static void __split_and_process_bio(struct mapped_device *md, bio_chain(b, bio); trace_block_split(b, bio->bi_iter.bi_sector); - submit_bio_noacct(bio); + resubmit_bio_noacct(bio); } }
lining reported that blk-throttle iops limit doesn't work correctly for dm-thin. Turns out it is same issue with the one addressed by commit 4f1e9630afe6 ("blk-throtl: optimize IOPS throttle for large IO scenarios"). So use the new added block layer API for addressing the same issue. Reported-by: lining <lining2020x@163.com> Cc: Tejun Heo <tj@kernel.org> Cc: Chunguang Xu <brookxu@tencent.com> Signed-off-by: Ming Lei <ming.lei@redhat.com> --- drivers/md/dm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)