diff mbox series

[3/4] dm: use submit_bio_noacct_add_head for split bio sending back

Message ID 1609233522-25837-4-git-send-email-dannyshih@synology.com (mailing list archive)
State New, archived
Headers show
Series Fix order when split bio and send remaining back to itself | expand

Commit Message

Danny Shih Dec. 29, 2020, 9:18 a.m. UTC
From: Danny Shih <dannyshih@synology.com>

Use submit_bio_noacct_add_head when sending split bio back to dm device.
Otherwise, it might be handled after the lately split bio.

Signed-off-by: Danny Shih <dannyshih@synology.com>
Reviewed-by: Allen Peng <allenpeng@synology.com>
Reviewed-by: Alex Wu <alexwu@synology.com>
 drivers/md/dm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series


diff --git a/drivers/md/dm.c b/drivers/md/dm.c
index b3c3c8b..1a651d5 100644
--- a/drivers/md/dm.c
+++ b/drivers/md/dm.c
@@ -1613,7 +1613,7 @@  static blk_qc_t __split_and_process_bio(struct mapped_device *md,
 				bio_chain(b, bio);
 				trace_block_split(b, bio->bi_iter.bi_sector);
-				ret = submit_bio_noacct(bio);
+				ret = submit_bio_noacct_add_head(bio);