wbio             2196 drivers/md/raid1.c 	struct bio *wbio;
wbio             2211 drivers/md/raid1.c 		wbio = r1_bio->bios[i];
wbio             2212 drivers/md/raid1.c 		if (wbio->bi_end_io == NULL ||
wbio             2213 drivers/md/raid1.c 		    (wbio->bi_end_io == end_sync_read &&
wbio             2222 drivers/md/raid1.c 		bio_set_op_attrs(wbio, REQ_OP_WRITE, 0);
wbio             2224 drivers/md/raid1.c 			wbio->bi_opf |= MD_FAILFAST;
wbio             2226 drivers/md/raid1.c 		wbio->bi_end_io = end_sync_write;
wbio             2228 drivers/md/raid1.c 		md_sync_acct(conf->mirrors[i].rdev->bdev, bio_sectors(wbio));
wbio             2230 drivers/md/raid1.c 		generic_make_request(wbio);
wbio             2374 drivers/md/raid1.c 		struct bio *wbio;
wbio             2380 drivers/md/raid1.c 			wbio = bio_clone_fast(r1_bio->behind_master_bio,
wbio             2384 drivers/md/raid1.c 			wbio = bio_clone_fast(r1_bio->master_bio, GFP_NOIO,
wbio             2388 drivers/md/raid1.c 		bio_set_op_attrs(wbio, REQ_OP_WRITE, 0);
wbio             2389 drivers/md/raid1.c 		wbio->bi_iter.bi_sector = r1_bio->sector;
wbio             2390 drivers/md/raid1.c 		wbio->bi_iter.bi_size = r1_bio->sectors << 9;
wbio             2392 drivers/md/raid1.c 		bio_trim(wbio, sector - r1_bio->sector, sectors);
wbio             2393 drivers/md/raid1.c 		wbio->bi_iter.bi_sector += rdev->data_offset;
wbio             2394 drivers/md/raid1.c 		bio_set_dev(wbio, rdev->bdev);
wbio             2396 drivers/md/raid1.c 		if (submit_bio_wait(wbio) < 0)
wbio             2402 drivers/md/raid1.c 		bio_put(wbio);
wbio             2228 drivers/md/raid10.c 	struct bio *wbio, *wbio2;
wbio             2241 drivers/md/raid10.c 	wbio = r10_bio->devs[1].bio;
wbio             2249 drivers/md/raid10.c 	if (wbio->bi_end_io) {
wbio             2251 drivers/md/raid10.c 		md_sync_acct(conf->mirrors[d].rdev->bdev, bio_sectors(wbio));
wbio             2252 drivers/md/raid10.c 		generic_make_request(wbio);
wbio             2549 drivers/md/raid10.c 		struct bio *wbio;
wbio             2554 drivers/md/raid10.c 		wbio = bio_clone_fast(bio, GFP_NOIO, &mddev->bio_set);
wbio             2555 drivers/md/raid10.c 		bio_trim(wbio, sector - bio->bi_iter.bi_sector, sectors);
wbio             2557 drivers/md/raid10.c 		wbio->bi_iter.bi_sector = wsector +
wbio             2559 drivers/md/raid10.c 		bio_set_dev(wbio, rdev->bdev);
wbio             2560 drivers/md/raid10.c 		bio_set_op_attrs(wbio, REQ_OP_WRITE, 0);
wbio             2562 drivers/md/raid10.c 		if (submit_bio_wait(wbio) < 0)
wbio             2568 drivers/md/raid10.c 		bio_put(wbio);