Lines Matching refs:tbio
2013 struct bio *tbio, *fbio; in sync_request_write() local
2040 tbio = r10_bio->devs[i].bio; in sync_request_write()
2042 if (tbio->bi_end_io != end_sync_read) in sync_request_write()
2047 tpages = get_resync_pages(tbio)->pages; in sync_request_write()
2082 rp = get_resync_pages(tbio); in sync_request_write()
2083 bio_reset(tbio); in sync_request_write()
2085 md_bio_reset_resync_pages(tbio, rp, fbio->bi_iter.bi_size); in sync_request_write()
2088 tbio->bi_private = rp; in sync_request_write()
2089 tbio->bi_iter.bi_sector = r10_bio->devs[i].addr; in sync_request_write()
2090 tbio->bi_end_io = end_sync_write; in sync_request_write()
2091 bio_set_op_attrs(tbio, REQ_OP_WRITE, 0); in sync_request_write()
2093 bio_copy_data(tbio, fbio); in sync_request_write()
2097 md_sync_acct(conf->mirrors[d].rdev->bdev, bio_sectors(tbio)); in sync_request_write()
2100 tbio->bi_opf |= MD_FAILFAST; in sync_request_write()
2101 tbio->bi_iter.bi_sector += conf->mirrors[d].rdev->data_offset; in sync_request_write()
2102 bio_set_dev(tbio, conf->mirrors[d].rdev->bdev); in sync_request_write()
2103 generic_make_request(tbio); in sync_request_write()
2112 tbio = r10_bio->devs[i].repl_bio; in sync_request_write()
2113 if (!tbio || !tbio->bi_end_io) in sync_request_write()
2117 bio_copy_data(tbio, fbio); in sync_request_write()
2121 bio_sectors(tbio)); in sync_request_write()
2122 generic_make_request(tbio); in sync_request_write()