Lines Matching defs:bio
1261 static void one_flush_endio(struct bio *bio)
1263 struct one_flush_context *octx = bio->bi_private;
1267 if (bio->bi_status) {
1268 ctx->error = blk_status_to_errno(bio->bi_status);
1269 drbd_info(device, "local disk FLUSH FAILED with status %d\n", bio->bi_status);
1272 bio_put(bio);
1284 struct bio *bio = bio_alloc(device->ldev->backing_bdev, 0,
1293 bio_put(bio);
1303 bio->bi_private = octx;
1304 bio->bi_end_io = one_flush_endio;
1309 submit_bio(bio);
1629 * single page to an empty bio (which should never happen and likely indicates
1637 struct bio *bios = NULL;
1638 struct bio *bio;
1647 * It's synchronous, but it does the right thing wrt. bio splitting.
1672 /* In most cases, we will only need one bio. But in case the lower
1675 * request in more than one bio.
1678 * generated bio, but a bio allocated on behalf of the peer.
1688 drbd_err(device, "Invalid bio op received: 0x%x\n", peer_req->opf);
1692 bio = bio_alloc(device->ldev->backing_bdev, nr_pages, peer_req->opf, GFP_NOIO);
1693 /* > peer_req->i.sector, unless this is the first bio */
1694 bio->bi_iter.bi_sector = sector;
1695 bio->bi_private = peer_req;
1696 bio->bi_end_io = drbd_peer_request_endio;
1698 bio->bi_next = bios;
1699 bios = bio;
1704 if (!bio_add_page(bio, page, len, 0))
1718 bio = bios;
1720 bio->bi_next = NULL;
1722 drbd_submit_bio_noacct(device, peer_request_fault_type(peer_req), bio);
1987 struct bio *bio;
2005 bio = req->master_bio;
2006 D_ASSERT(peer_device->device, sector == bio->bi_iter.bi_sector);
2008 bio_for_each_segment(bvec, bio, iter) {
2019 drbd_csum_bio(peer_device->connection->peer_integrity_tfm, bio, dig_vv);
2438 if (m.bio)
5682 if (m.bio)
5760 The master bio might already be completed, therefore the