Reviewed-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
        while (bio) {
                n = bio->bi_next;
                bio->bi_next = NULL;
-               submit_bio_noacct(bio);
+               dm_submit_bio_remap(bio, NULL, true);
                bio = n;
        }
 }
 
        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;
 
 
 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,