Lines Matching defs:bio
88 struct bio *bio;
103 for (bio = req->bio; bio; bio = bio->bi_next) {
104 bio_set_dev(bio, ns->head->disk->part0);
105 if (bio->bi_opf & REQ_POLLED) {
106 bio->bi_opf &= ~REQ_POLLED;
107 bio->bi_cookie = BLK_QC_T_NONE;
111 * the bio to may be frozen temporarily, in this case REQ_NOWAIT
116 bio->bi_opf &= ~REQ_NOWAIT;
374 static void nvme_ns_head_submit_bio(struct bio *bio)
376 struct nvme_ns_head *head = bio->bi_bdev->bd_disk->private_data;
382 * The namespace might be going away and the bio might be moved to a
386 bio = bio_split_to_limits(bio);
387 if (!bio)
393 bio_set_dev(bio, ns->disk->part0);
394 bio->bi_opf |= REQ_NVME_MPATH;
395 trace_block_bio_remap(bio, disk_devt(ns->head->disk),
396 bio->bi_iter.bi_sector);
397 submit_bio_noacct(bio);
402 bio_list_add(&head->requeue_list, bio);
407 bio_io_error(bio);
502 struct bio *bio, *next;
508 while ((bio = next) != NULL) {
509 next = bio->bi_next;
510 bio->bi_next = NULL;
512 submit_bio_noacct(bio);