Lines Matching refs:mbio
1252 struct bio *mbio; in raid10_write_one_disk() local
1257 mbio = bio_alloc_clone(rdev->bdev, bio, GFP_NOIO, &mddev->bio_set); in raid10_write_one_disk()
1259 r10_bio->devs[n_copy].repl_bio = mbio; in raid10_write_one_disk()
1261 r10_bio->devs[n_copy].bio = mbio; in raid10_write_one_disk()
1263 mbio->bi_iter.bi_sector = (r10_bio->devs[n_copy].addr + in raid10_write_one_disk()
1265 mbio->bi_end_io = raid10_end_write_request; in raid10_write_one_disk()
1266 mbio->bi_opf = op | do_sync | do_fua; in raid10_write_one_disk()
1270 mbio->bi_opf |= MD_FAILFAST; in raid10_write_one_disk()
1271 mbio->bi_private = r10_bio; in raid10_write_one_disk()
1272 mddev_trace_remap(mddev, mbio, r10_bio->sector); in raid10_write_one_disk()
1274 mbio->bi_bdev = (void *)rdev; in raid10_write_one_disk()
1278 if (!raid1_add_bio_to_plug(mddev, mbio, raid10_unplug, conf->copies)) { in raid10_write_one_disk()
1280 bio_list_add(&conf->pending_bio_list, mbio); in raid10_write_one_disk()
1747 struct bio *mbio, *rbio = NULL; in raid10_handle_discard() local
1783 mbio = bio_alloc_clone(bio->bi_bdev, bio, GFP_NOIO, in raid10_handle_discard()
1785 mbio->bi_end_io = raid10_end_discard_request; in raid10_handle_discard()
1786 mbio->bi_private = r10_bio; in raid10_handle_discard()
1787 r10_bio->devs[disk].bio = mbio; in raid10_handle_discard()
1790 md_submit_discard_bio(mddev, rdev, mbio, in raid10_handle_discard()
1793 bio_endio(mbio); in raid10_handle_discard()