[dm-devel] [PATCH 2/2] dm: use resubmit_bio_noacct to submit split bio

Ming Lei ming.lei at redhat.com
Mon Jan 10 07:51:41 UTC 2022


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 at 163.com>
Cc: Tejun Heo <tj at kernel.org>
Cc: Chunguang Xu <brookxu at tencent.com>
Signed-off-by: Ming Lei <ming.lei at redhat.com>
---
 drivers/md/dm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
 		}
 	}
 
-- 
2.31.1




More information about the dm-devel mailing list