Lines Matching refs:wbio
2226 struct bio *wbio; in sync_request_write() local
2241 wbio = r1_bio->bios[i]; in sync_request_write()
2242 if (wbio->bi_end_io == NULL || in sync_request_write()
2243 (wbio->bi_end_io == end_sync_read && in sync_request_write()
2252 wbio->bi_opf = REQ_OP_WRITE; in sync_request_write()
2254 wbio->bi_opf |= MD_FAILFAST; in sync_request_write()
2256 wbio->bi_end_io = end_sync_write; in sync_request_write()
2258 md_sync_acct(conf->mirrors[i].rdev->bdev, bio_sectors(wbio)); in sync_request_write()
2260 submit_bio_noacct(wbio); in sync_request_write()
2403 struct bio *wbio; in narrow_write_error() local
2409 wbio = bio_alloc_clone(rdev->bdev, in narrow_write_error()
2413 wbio = bio_alloc_clone(rdev->bdev, r1_bio->master_bio, in narrow_write_error()
2417 wbio->bi_opf = REQ_OP_WRITE; in narrow_write_error()
2418 wbio->bi_iter.bi_sector = r1_bio->sector; in narrow_write_error()
2419 wbio->bi_iter.bi_size = r1_bio->sectors << 9; in narrow_write_error()
2421 bio_trim(wbio, sector - r1_bio->sector, sectors); in narrow_write_error()
2422 wbio->bi_iter.bi_sector += rdev->data_offset; in narrow_write_error()
2424 if (submit_bio_wait(wbio) < 0) in narrow_write_error()
2430 bio_put(wbio); in narrow_write_error()