Lines Matching refs:bio
863 struct cfq_io_cq *cic, struct bio *bio);
899 static inline bool cfq_bio_sync(struct bio *bio) in cfq_bio_sync() argument
901 return bio_data_dir(bio) == READ || (bio->bi_rw & REQ_SYNC); in cfq_bio_sync()
2459 cfq_find_rq_fmerge(struct cfq_data *cfqd, struct bio *bio) in cfq_find_rq_fmerge() argument
2469 cfqq = cic_to_cfqq(cic, cfq_bio_sync(bio)); in cfq_find_rq_fmerge()
2471 return elv_rb_find(&cfqq->sort_list, bio_end_sector(bio)); in cfq_find_rq_fmerge()
2516 struct bio *bio) in cfq_merge() argument
2521 __rq = cfq_find_rq_fmerge(cfqd, bio); in cfq_merge()
2522 if (__rq && elv_rq_merge_ok(__rq, bio)) { in cfq_merge()
2541 struct bio *bio) in cfq_bio_merged() argument
2543 cfqg_stats_update_io_merged(RQ_CFQG(req), bio->bi_rw); in cfq_bio_merged()
2580 struct bio *bio) in cfq_allow_merge() argument
2589 if (cfq_bio_sync(bio) && !rq_is_sync(rq)) in cfq_allow_merge()
2600 cfqq = cic_to_cfqq(cic, cfq_bio_sync(bio)); in cfq_allow_merge()
3670 static void check_ioprio_changed(struct cfq_io_cq *cic, struct bio *bio) in check_ioprio_changed() argument
3686 cfqq = cfq_get_queue(cfqd, BLK_RW_ASYNC, cic, bio); in check_ioprio_changed()
3718 static void check_blkcg_changed(struct cfq_io_cq *cic, struct bio *bio) in check_blkcg_changed() argument
3725 serial_nr = bio_blkcg(bio)->css.serial_nr; in check_blkcg_changed()
3756 static inline void check_blkcg_changed(struct cfq_io_cq *cic, struct bio *bio) { } in check_blkcg_changed() argument
3779 struct bio *bio) in cfq_get_queue() argument
3788 cfqg = cfq_lookup_cfqg(cfqd, bio_blkcg(bio)); in cfq_get_queue()
4350 cfq_set_request(struct request_queue *q, struct request *rq, struct bio *bio, in cfq_set_request() argument
4361 check_ioprio_changed(cic, bio); in cfq_set_request()
4362 check_blkcg_changed(cic, bio); in cfq_set_request()
4368 cfqq = cfq_get_queue(cfqd, is_sync, cic, bio); in cfq_set_request()