Skip to content

Commit c357342

Browse files
committed
dm delay: use dm_submit_bio_remap
Reviewed-by: Mikulas Patocka <[email protected]> Signed-off-by: Mike Snitzer <[email protected]>
1 parent e5524e1 commit c357342

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/md/dm-delay.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ static void flush_bios(struct bio *bio)
7272
while (bio) {
7373
n = bio->bi_next;
7474
bio->bi_next = NULL;
75-
submit_bio_noacct(bio);
75+
dm_submit_bio_remap(bio, NULL, true);
7676
bio = n;
7777
}
7878
}
@@ -232,6 +232,7 @@ static int delay_ctr(struct dm_target *ti, unsigned int argc, char **argv)
232232

233233
ti->num_flush_bios = 1;
234234
ti->num_discard_bios = 1;
235+
ti->accounts_remapped_io = true;
235236
ti->per_io_data_size = sizeof(struct dm_delay_info);
236237
return 0;
237238

@@ -355,7 +356,7 @@ static int delay_iterate_devices(struct dm_target *ti,
355356

356357
static struct target_type delay_target = {
357358
.name = "delay",
358-
.version = {1, 2, 1},
359+
.version = {1, 3, 0},
359360
.features = DM_TARGET_PASSES_INTEGRITY,
360361
.module = THIS_MODULE,
361362
.ctr = delay_ctr,

0 commit comments

Comments
 (0)