Lines Matching defs:bio
56 * complete. The first completion updates the contained bio but doesn't
57 * finish it so that the bio submitter is notified only after the whole
62 * bio attached to it, which is guaranteed as they aren't allowed to be
68 #include <linux/bio.h>
123 * After flush data completion, @rq->bio is %NULL but we need to
124 * complete the bio again. @rq->biotail is guaranteed to equal the
125 * original @rq->bio. Restore it.
127 rq->bio = rq->biotail;
417 BUG_ON(rq->bio != rq->biotail); /*assumes zero or single bio rq */
456 struct bio *bio;
459 bio = bio_alloc(gfp_mask, 0);
460 bio_set_dev(bio, bdev);
461 bio->bi_opf = REQ_OP_WRITE | REQ_PREFLUSH;
463 ret = submit_bio_wait(bio);
464 bio_put(bio);
500 /* bio based request queue hasn't flush queue */