Skip to content

Commit a925128

Browse files
committed
dm thin: use dm_submit_bio_remap
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
1 parent 0a8e959 commit a925128

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

drivers/md/dm-thin.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ static void issue(struct thin_c *tc, struct bio *bio)
755755
struct pool *pool = tc->pool;
756756

757757
if (!bio_triggers_commit(tc, bio)) {
758-
submit_bio_noacct(bio);
758+
dm_submit_bio_remap(bio, NULL, true);
759759
return;
760760
}
761761

@@ -2383,7 +2383,7 @@ static void process_deferred_bios(struct pool *pool)
23832383
if (bio->bi_opf & REQ_PREFLUSH)
23842384
bio_endio(bio);
23852385
else
2386-
submit_bio_noacct(bio);
2386+
dm_submit_bio_remap(bio, NULL, true);
23872387
}
23882388
}
23892389

@@ -4231,6 +4231,7 @@ static int thin_ctr(struct dm_target *ti, unsigned argc, char **argv)
42314231

42324232
ti->num_flush_bios = 1;
42334233
ti->flush_supported = true;
4234+
ti->accounts_remapped_io = true;
42344235
ti->per_io_data_size = sizeof(struct dm_thin_endio_hook);
42354236

42364237
/* In case the pool supports discards, pass them on. */

0 commit comments

Comments
 (0)