Lines Matching refs:mpio
285 static struct dm_bio_details *get_bio_details_from_mpio(struct dm_mpath_io *mpio) in get_bio_details_from_mpio() argument
288 void *bio_details = mpio + 1; in get_bio_details_from_mpio()
294 struct dm_mpath_io *mpio = get_mpio_from_bio(bio); in multipath_init_per_bio_data() local
295 struct dm_bio_details *bio_details = get_bio_details_from_mpio(mpio); in multipath_init_per_bio_data()
297 mpio->nr_bytes = bio->bi_iter.bi_size; in multipath_init_per_bio_data()
298 mpio->pgpath = NULL; in multipath_init_per_bio_data()
299 mpio->start_time_ns = 0; in multipath_init_per_bio_data()
300 *mpio_p = mpio; in multipath_init_per_bio_data()
510 struct dm_mpath_io *mpio = get_mpio(map_context); in multipath_clone_and_map() local
530 mpio->pgpath = pgpath; in multipath_clone_and_map()
531 mpio->nr_bytes = nr_bytes; in multipath_clone_and_map()
573 struct dm_mpath_io *mpio = get_mpio(map_context); in multipath_release_clone() local
574 struct pgpath *pgpath = mpio->pgpath; in multipath_release_clone()
579 mpio->nr_bytes, in multipath_release_clone()
636 struct dm_mpath_io *mpio) in __multipath_map_bio() argument
650 mpio->pgpath = pgpath; in __multipath_map_bio()
653 mpio->start_time_ns = ktime_get_ns(); in __multipath_map_bio()
662 mpio->nr_bytes); in __multipath_map_bio()
669 struct dm_mpath_io *mpio = NULL; in multipath_map_bio() local
671 multipath_init_per_bio_data(bio, &mpio); in multipath_map_bio()
672 return __multipath_map_bio(m, bio, mpio); in multipath_map_bio()
709 struct dm_mpath_io *mpio = get_mpio_from_bio(bio); in process_queued_bios() local
710 dm_bio_restore(get_bio_details_from_mpio(mpio), bio); in process_queued_bios()
711 r = __multipath_map_bio(m, bio, mpio); in process_queued_bios()
1637 struct dm_mpath_io *mpio = get_mpio(map_context); in multipath_end_io() local
1638 struct pgpath *pgpath = mpio->pgpath; in multipath_end_io()
1676 ps->type->end_io(ps, &pgpath->path, mpio->nr_bytes, in multipath_end_io()
1687 struct dm_mpath_io *mpio = get_mpio_from_bio(clone); in multipath_end_io_bio() local
1688 struct pgpath *pgpath = mpio->pgpath; in multipath_end_io_bio()
1720 ps->type->end_io(ps, &pgpath->path, mpio->nr_bytes, in multipath_end_io_bio()
1721 (mpio->start_time_ns ?: in multipath_end_io_bio()