Lines Matching refs:tbio
2045 struct bio *tbio, *fbio; in sync_request_write() local
2072 tbio = r10_bio->devs[i].bio; in sync_request_write()
2074 if (tbio->bi_end_io != end_sync_read) in sync_request_write()
2079 tpages = get_resync_pages(tbio)->pages; in sync_request_write()
2114 rp = get_resync_pages(tbio); in sync_request_write()
2115 bio_reset(tbio); in sync_request_write()
2117 md_bio_reset_resync_pages(tbio, rp, fbio->bi_iter.bi_size); in sync_request_write()
2120 tbio->bi_private = rp; in sync_request_write()
2121 tbio->bi_iter.bi_sector = r10_bio->devs[i].addr; in sync_request_write()
2122 tbio->bi_end_io = end_sync_write; in sync_request_write()
2123 bio_set_op_attrs(tbio, REQ_OP_WRITE, 0); in sync_request_write()
2125 bio_copy_data(tbio, fbio); in sync_request_write()
2129 md_sync_acct(conf->mirrors[d].rdev->bdev, bio_sectors(tbio)); in sync_request_write()
2132 tbio->bi_opf |= MD_FAILFAST; in sync_request_write()
2133 tbio->bi_iter.bi_sector += conf->mirrors[d].rdev->data_offset; in sync_request_write()
2134 bio_set_dev(tbio, conf->mirrors[d].rdev->bdev); in sync_request_write()
2135 generic_make_request(tbio); in sync_request_write()
2144 tbio = r10_bio->devs[i].repl_bio; in sync_request_write()
2145 if (!tbio || !tbio->bi_end_io) in sync_request_write()
2149 bio_copy_data(tbio, fbio); in sync_request_write()
2153 bio_sectors(tbio)); in sync_request_write()
2154 generic_make_request(tbio); in sync_request_write()