Lines Matching defs:bio
50 void drbd_md_endio(struct bio *bio)
54 device = bio->bi_private;
55 device->md_io.error = blk_status_to_errno(bio->bi_status);
60 bio_put(bio);
171 void drbd_peer_request_endio(struct bio *bio)
173 struct drbd_peer_request *peer_req = bio->bi_private;
175 bool is_write = bio_data_dir(bio) == WRITE;
176 bool is_discard = bio_op(bio) == REQ_OP_WRITE_ZEROES ||
177 bio_op(bio) == REQ_OP_DISCARD;
179 if (bio->bi_status && drbd_ratelimit())
182 : "read", bio->bi_status,
185 if (bio->bi_status)
188 bio_put(bio); /* no need for the bio anymore */
206 void drbd_request_endio(struct bio *bio)
209 struct drbd_request *req = bio->bi_private;
246 if (!bio->bi_status)
251 if (unlikely(bio->bi_status)) {
252 switch (bio_op(bio)) {
255 if (bio->bi_status == BLK_STS_NOTSUPP)
261 if (bio->bi_opf & REQ_RAHEAD)
274 req->private_bio = ERR_PTR(blk_status_to_errno(bio->bi_status));
275 bio_put(bio);
283 if (m.bio)
316 void drbd_csum_bio(struct crypto_shash *tfm, struct bio *bio, void *digest)
326 bio_for_each_segment(bvec, bio, iter) {