Lines Matching defs:bio
1257 static void one_flush_endio(struct bio *bio)
1259 struct one_flush_context *octx = bio->bi_private;
1263 if (bio->bi_status) {
1264 ctx->error = blk_status_to_errno(bio->bi_status);
1265 drbd_info(device, "local disk FLUSH FAILED with status %d\n", bio->bi_status);
1268 bio_put(bio);
1280 struct bio *bio = bio_alloc(GFP_NOIO, 0);
1282 if (!bio || !octx) {
1283 drbd_warn(device, "Could not allocate a bio, CANNOT ISSUE FLUSH\n");
1288 if (bio)
1289 bio_put(bio);
1299 bio_set_dev(bio, device->ldev->backing_bdev);
1300 bio->bi_private = octx;
1301 bio->bi_end_io = one_flush_endio;
1302 bio->bi_opf = REQ_OP_WRITE | REQ_PREFLUSH;
1307 submit_bio(bio);
1624 * @rw: flag field, see bio->bi_opf
1632 * single page to an empty bio (which should never happen and likely indicates
1642 struct bio *bios = NULL;
1643 struct bio *bio;
1653 * It's synchronous, but it does the right thing wrt. bio splitting.
1681 /* In most cases, we will only need one bio. But in case the lower
1684 * request in more than one bio.
1687 * generated bio, but a bio allocated on behalf of the peer.
1690 bio = bio_alloc(GFP_NOIO, nr_pages);
1691 if (!bio) {
1692 drbd_err(device, "submit_ee: Allocation of a bio failed (nr_pages=%u)\n", nr_pages);
1695 /* > peer_req->i.sector, unless this is the first bio */
1696 bio->bi_iter.bi_sector = sector;
1697 bio_set_dev(bio, device->ldev->backing_bdev);
1698 bio_set_op_attrs(bio, op, op_flags);
1699 bio->bi_private = peer_req;
1700 bio->bi_end_io = drbd_peer_request_endio;
1702 bio->bi_next = bios;
1703 bios = bio;
1708 if (!bio_add_page(bio, page, len, 0))
1722 bio = bios;
1724 bio->bi_next = NULL;
1726 drbd_submit_bio_noacct(device, fault_type, bio);
1732 bio = bios;
1734 bio_put(bio);
2014 struct bio *bio;
2032 bio = req->master_bio;
2033 D_ASSERT(peer_device->device, sector == bio->bi_iter.bi_sector);
2035 bio_for_each_segment(bvec, bio, iter) {
2046 drbd_csum_bio(peer_device->connection->peer_integrity_tfm, bio, dig_vv);
2470 if (m.bio)
5732 if (m.bio)
5810 The master bio might already be completed, therefore the