Lines Matching defs:bio

1790  * Get the index of the actuator that will serve bio.
1792 static unsigned int bfq_actuator_index(struct bfq_data *bfqd, struct bio *bio)
1801 /* bio_end_sector(bio) gives the sector after the last one */
1802 end = bio_end_sector(bio) - 1;
1811 "bfq_actuator_index: bio sector out of ranges: end=%llu\n",
1835 unsigned int act_idx = bfq_actuator_index(bfqd, rq->bio);
2360 struct bio *bio,
2367 return elv_rb_find(&bfqq->sort_list, bio_end_sector(bio));
2445 static bool bfq_bio_merge(struct request_queue *q, struct bio *bio,
2467 bfq_bic_update_cgroup(bic, bio);
2469 bfqd->bio_bfqq = bic_to_bfqq(bic, op_is_sync(bio->bi_opf),
2470 bfq_actuator_index(bfqd, bio));
2476 ret = blk_mq_sched_try_merge(q, bio, nr_segs, &free);
2486 struct bio *bio)
2491 __rq = bfq_find_rq_fmerge(bfqd, bio, q);
2492 if (__rq && elv_bio_merge_ok(__rq, bio)) {
2671 return ((struct bio *)io_struct)->bi_iter.bi_sector;
3023 * queues. The only thing we need is that the bio/request is not
3228 struct bio *bio)
3231 bool is_sync = op_is_sync(bio->bi_opf);
3235 * Disallow merge of a sync bio into an async request.
3241 * Lookup the bfqq that this bio will be queued with. Allow
3251 new_bfqq = bfq_setup_cooperator(bfqd, bfqq, bio, false, bfqd->bio_bic);
3263 * If we get here, bio will be queued into new_queue,
3264 * so use new_bfqq to decide whether bio and rq can be
5557 struct bio *bio, bool is_sync,
5561 static void bfq_check_ioprio_change(struct bfq_io_cq *bic, struct bio *bio)
5576 bfqq = bic_to_bfqq(bic, false, bfq_actuator_index(bfqd, bio));
5580 bfqq = bfq_get_queue(bfqd, bio, false, bic, true);
5581 bic_set_bfqq(bic, bfqq, false, bfq_actuator_index(bfqd, bio));
5585 bfqq = bic_to_bfqq(bic, true, bfq_actuator_index(bfqd, bio));
5833 struct bio *bio, bool is_sync,
5843 bfqg = bfq_bio_bfqg(bfqd, bio);
5847 bfq_actuator_index(bfqd, bio));
5859 is_sync, bfq_actuator_index(bfqd, bio));
6175 bfq_actuator_index(bfqd, rq->bio)) == bfqq)
6250 if (!cgroup_subsys_on_dfl(io_cgrp_subsys) && rq->bio)
6741 struct bio *bio,
6745 unsigned int act_idx = bfq_actuator_index(bfqd, bio);
6757 bfqq = bfq_get_queue(bfqd, bio, is_sync, bic, split);
6848 struct bio *bio = rq->bio;
6855 unsigned int a_idx = bfq_actuator_index(bfqd, bio);
6872 bfq_check_ioprio_change(bic, bio);
6874 bfq_bic_update_cgroup(bic, bio);
6876 bfqq = bfq_get_bfqq_handle_split(bfqd, bic, bio, false, is_sync,
6894 bfqq = bfq_get_bfqq_handle_split(bfqd, bic, bio,