Lines Matching refs:tbio
2407 struct bio *tbio, *fbio; in sync_request_write() local
2434 tbio = r10_bio->devs[i].bio; in sync_request_write()
2436 if (tbio->bi_end_io != end_sync_read) in sync_request_write()
2441 tpages = get_resync_pages(tbio)->pages; in sync_request_write()
2476 rp = get_resync_pages(tbio); in sync_request_write()
2477 bio_reset(tbio, conf->mirrors[d].rdev->bdev, REQ_OP_WRITE); in sync_request_write()
2479 md_bio_reset_resync_pages(tbio, rp, fbio->bi_iter.bi_size); in sync_request_write()
2482 tbio->bi_private = rp; in sync_request_write()
2483 tbio->bi_iter.bi_sector = r10_bio->devs[i].addr; in sync_request_write()
2484 tbio->bi_end_io = end_sync_write; in sync_request_write()
2486 bio_copy_data(tbio, fbio); in sync_request_write()
2490 md_sync_acct(conf->mirrors[d].rdev->bdev, bio_sectors(tbio)); in sync_request_write()
2493 tbio->bi_opf |= MD_FAILFAST; in sync_request_write()
2494 tbio->bi_iter.bi_sector += conf->mirrors[d].rdev->data_offset; in sync_request_write()
2495 submit_bio_noacct(tbio); in sync_request_write()
2504 tbio = r10_bio->devs[i].repl_bio; in sync_request_write()
2505 if (!tbio || !tbio->bi_end_io) in sync_request_write()
2509 bio_copy_data(tbio, fbio); in sync_request_write()
2513 bio_sectors(tbio)); in sync_request_write()
2514 submit_bio_noacct(tbio); in sync_request_write()