Lines Matching defs:bio
2124 struct bio *bio,
2131 return elv_rb_find(&bfqq->sort_list, bio_end_sector(bio));
2221 static bool bfq_bio_merge(struct request_queue *q, struct bio *bio,
2243 bfq_bic_update_cgroup(bic, bio);
2245 bfqd->bio_bfqq = bic_to_bfqq(bic, op_is_sync(bio->bi_opf));
2251 ret = blk_mq_sched_try_merge(q, bio, nr_segs, &free);
2261 struct bio *bio)
2266 __rq = bfq_find_rq_fmerge(bfqd, bio, q);
2267 if (__rq && elv_bio_merge_ok(__rq, bio)) {
2423 return ((struct bio *)io_struct)->bi_iter.bi_sector;
2705 * queues. The only thing we need is that the bio/request is not
2855 struct bio *bio)
2858 bool is_sync = op_is_sync(bio->bi_opf);
2862 * Disallow merge of a sync bio into an async request.
2868 * Lookup the bfqq that this bio will be queued with. Allow
2878 new_bfqq = bfq_setup_cooperator(bfqd, bfqq, bio, false);
2890 * If we get here, bio will be queued into new_queue,
2891 * so use new_bfqq to decide whether bio and rq can be
5061 struct bio *bio, bool is_sync,
5064 static void bfq_check_ioprio_change(struct bfq_io_cq *bic, struct bio *bio)
5083 bfqq = bfq_get_queue(bfqd, bio, false, bic);
5173 struct bio *bio, bool is_sync,
5182 bfqg = bfq_bio_bfqg(bfqd, bio);
5541 if (!cgroup_subsys_on_dfl(io_cgrp_subsys) && rq->bio)
6016 struct bio *bio,
6030 bfqq = bfq_get_queue(bfqd, bio, is_sync, bic);
6119 struct bio *bio = rq->bio;
6142 bfq_check_ioprio_change(bic, bio);
6144 bfq_bic_update_cgroup(bic, bio);
6146 bfqq = bfq_get_bfqq_handle_split(bfqd, bic, bio, false, is_sync,
6162 bfqq = bfq_get_bfqq_handle_split(bfqd, bic, bio,