Skip to content

Commit

Permalink
dm thin: use dm_submit_bio_remap
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Snitzer <[email protected]>
  • Loading branch information
snitm committed Mar 10, 2022
1 parent 0a8e959 commit a925128
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/md/dm-thin.c
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@ static void issue(struct thin_c *tc, struct bio *bio)
struct pool *pool = tc->pool;

if (!bio_triggers_commit(tc, bio)) {
submit_bio_noacct(bio);
dm_submit_bio_remap(bio, NULL, true);
return;
}

Expand Down Expand Up @@ -2383,7 +2383,7 @@ static void process_deferred_bios(struct pool *pool)
if (bio->bi_opf & REQ_PREFLUSH)
bio_endio(bio);
else
submit_bio_noacct(bio);
dm_submit_bio_remap(bio, NULL, true);
}
}

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

ti->num_flush_bios = 1;
ti->flush_supported = true;
ti->accounts_remapped_io = true;
ti->per_io_data_size = sizeof(struct dm_thin_endio_hook);

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

0 comments on commit a925128

Please sign in to comment.