Lines Matching defs:bio

24 static struct drbd_request *drbd_req_new(struct drbd_device *device, struct bio *bio_src)
181 m->bio->bi_status = errno_to_blk_status(m->error);
182 bio_endio(m->bio);
188 * Set m->bio to the master bio, if it is fit to be completed,
191 * If m->bio is set, the error status to be returned is placed in m->error.
200 /* we must not complete the master bio, while it is
273 m->bio = req->master_bio;
558 m->bio = NULL;
1142 struct bio *bio = req->private_bio;
1145 if (bio_op(bio) != REQ_OP_READ)
1147 else if (bio->bi_opf & REQ_RAHEAD)
1152 bio_set_dev(bio, device->ldev->backing_bdev);
1158 * this bio. */
1161 bio_io_error(bio);
1162 else if (bio_op(bio) == REQ_OP_WRITE_ZEROES)
1164 ((bio->bi_opf & REQ_NOUNMAP) ? 0 : EE_TRIM));
1165 else if (bio_op(bio) == REQ_OP_DISCARD)
1168 submit_bio_noacct(bio);
1171 bio_io_error(bio);
1192 drbd_request_prepare(struct drbd_device *device, struct bio *bio, unsigned long start_jif)
1194 const int rw = bio_data_dir(bio);
1198 req = drbd_req_new(device, bio);
1204 bio->bi_status = BLK_STS_RESOURCE;
1205 bio_endio(bio);
1218 if (bio_op(bio) == REQ_OP_WRITE_ZEROES ||
1219 bio_op(bio) == REQ_OP_DISCARD)
1409 * As long as we still need to submit our private bio,
1411 * If however this request did not even have a private bio to submit
1416 if (m.bio)
1420 void __drbd_make_request(struct drbd_device *device, struct bio *bio, unsigned long start_jif)
1422 struct drbd_request *req = drbd_request_prepare(device, bio, start_jif);
1597 blk_qc_t drbd_submit_bio(struct bio *bio)
1599 struct drbd_device *device = bio->bi_disk->private_data;
1602 blk_queue_split(&bio);
1609 D_ASSERT(device, IS_ALIGNED(bio->bi_iter.bi_size, 512));
1612 __drbd_make_request(device, bio, start_jif);