Lines Matching refs:mbio
1283 struct bio *mbio; in raid10_write_one_disk() local
1295 mbio = bio_alloc_clone(rdev->bdev, bio, GFP_NOIO, &mddev->bio_set); in raid10_write_one_disk()
1297 r10_bio->devs[n_copy].repl_bio = mbio; in raid10_write_one_disk()
1299 r10_bio->devs[n_copy].bio = mbio; in raid10_write_one_disk()
1301 mbio->bi_iter.bi_sector = (r10_bio->devs[n_copy].addr + in raid10_write_one_disk()
1303 mbio->bi_end_io = raid10_end_write_request; in raid10_write_one_disk()
1304 bio_set_op_attrs(mbio, op, do_sync | do_fua); in raid10_write_one_disk()
1308 mbio->bi_opf |= MD_FAILFAST; in raid10_write_one_disk()
1309 mbio->bi_private = r10_bio; in raid10_write_one_disk()
1312 trace_block_bio_remap(mbio, disk_devt(conf->mddev->gendisk), in raid10_write_one_disk()
1315 mbio->bi_bdev = (void *)rdev; in raid10_write_one_disk()
1325 bio_list_add(&plug->pending, mbio); in raid10_write_one_disk()
1328 bio_list_add(&conf->pending_bio_list, mbio); in raid10_write_one_disk()
1813 struct bio *mbio, *rbio = NULL; in raid10_handle_discard() local
1849 mbio = bio_alloc_clone(bio->bi_bdev, bio, GFP_NOIO, in raid10_handle_discard()
1851 mbio->bi_end_io = raid10_end_discard_request; in raid10_handle_discard()
1852 mbio->bi_private = r10_bio; in raid10_handle_discard()
1853 r10_bio->devs[disk].bio = mbio; in raid10_handle_discard()
1856 md_submit_discard_bio(mddev, rdev, mbio, in raid10_handle_discard()
1859 bio_endio(mbio); in raid10_handle_discard()