Skip to content

Commit

Permalink
dm delay: use dm_submit_bio_remap
Browse files Browse the repository at this point in the history
Reviewed-by: Mikulas Patocka <[email protected]>
Signed-off-by: Mike Snitzer <[email protected]>
  • Loading branch information
snitm committed Feb 21, 2022
1 parent e5524e1 commit c357342
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/md/dm-delay.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ static void flush_bios(struct bio *bio)
while (bio) {
n = bio->bi_next;
bio->bi_next = NULL;
submit_bio_noacct(bio);
dm_submit_bio_remap(bio, NULL, true);
bio = n;
}
}
Expand Down Expand Up @@ -232,6 +232,7 @@ static int delay_ctr(struct dm_target *ti, unsigned int argc, char **argv)

ti->num_flush_bios = 1;
ti->num_discard_bios = 1;
ti->accounts_remapped_io = true;
ti->per_io_data_size = sizeof(struct dm_delay_info);
return 0;

Expand Down Expand Up @@ -355,7 +356,7 @@ static int delay_iterate_devices(struct dm_target *ti,

static struct target_type delay_target = {
.name = "delay",
.version = {1, 2, 1},
.version = {1, 3, 0},
.features = DM_TARGET_PASSES_INTEGRITY,
.module = THIS_MODULE,
.ctr = delay_ctr,
Expand Down

0 comments on commit c357342

Please sign in to comment.