Lines Matching defs:tio
343 static inline void free_tio(struct mapped_device *md, struct target_io *tio)
345 mempool_free(tio, md->tio_pool);
501 struct target_io *tio = bio->bi_private;
502 struct mapped_device *md = tio->io->md;
503 dm_endio_fn endio = tio->ti->type->end_io;
512 r = endio(tio->ti, bio, error, &tio->info);
528 dec_pending(tio->io, error);
531 * Store md for cleanup instead of tio which is about to get freed.
536 free_tio(md, tio);
561 struct target_io *tio)
573 clone->bi_private = tio;
580 atomic_inc(&tio->io->io_count);
582 r = ti->type->map(ti, clone, &tio->info);
587 tio->io->bio->bi_bdev->bd_dev, sector,
593 md = tio->io->md;
594 dec_pending(tio->io, r);
600 free_tio(md, tio);
675 struct target_io *tio;
680 tio = alloc_tio(ci->md);
681 tio->io = ci->io;
682 tio->ti = ti;
683 memset(&tio->info, 0, sizeof(tio->info));
693 __map_bio(ti, clone, tio);
717 __map_bio(ti, clone, tio);
736 tio = alloc_tio(ci->md);
737 tio->io = ci->io;
738 tio->ti = ti;
739 memset(&tio->info, 0, sizeof(tio->info));
748 __map_bio(ti, clone, tio);