• Home
  • Raw
  • Download

Lines Matching refs:q

192 static void deadline_remove_request(struct request_queue *q,  in deadline_remove_request()  argument
204 elv_rqhash_del(q, rq); in deadline_remove_request()
205 if (q->last_merge == rq) in deadline_remove_request()
206 q->last_merge = NULL; in deadline_remove_request()
209 static void dd_request_merged(struct request_queue *q, struct request *req, in dd_request_merged() argument
212 struct deadline_data *dd = q->elevator->elevator_data; in dd_request_merged()
229 static void dd_merged_requests(struct request_queue *q, struct request *req, in dd_merged_requests() argument
232 struct deadline_data *dd = q->elevator->elevator_data; in dd_merged_requests()
255 deadline_remove_request(q, &dd->per_prio[prio], next); in dd_merged_requests()
272 deadline_remove_request(rq->q, per_prio, rq); in deadline_move_request()
314 if (data_dir == DD_READ || !blk_queue_is_zoned(rq->q)) in deadline_fifo_request()
348 if (data_dir == DD_READ || !blk_queue_is_zoned(rq->q)) in deadline_next_request()
533 struct deadline_data *dd = data->q->elevator->elevator_data; in dd_limit_depth()
549 struct request_queue *q = hctx->queue; in dd_depth_updated() local
550 struct deadline_data *dd = q->elevator->elevator_data; in dd_depth_updated()
588 static int dd_init_sched(struct request_queue *q, struct elevator_type *e) in dd_init_sched() argument
599 WARN_ON_ONCE(!percpu_ref_is_zero(&q->q_usage_counter)); in dd_init_sched()
601 eq = elevator_alloc(q, e); in dd_init_sched()
605 dd = kzalloc_node(sizeof(*dd), GFP_KERNEL, q->node); in dd_init_sched()
616 dd->queue = q; in dd_init_sched()
637 ret = dd_activate_policy(q); in dd_init_sched()
642 q->elevator = eq; in dd_init_sched()
660 static int dd_request_merge(struct request_queue *q, struct request **rq, in dd_request_merge() argument
663 struct deadline_data *dd = q->elevator->elevator_data; in dd_request_merge()
692 static bool dd_bio_merge(struct request_queue *q, struct bio *bio, in dd_bio_merge() argument
695 struct deadline_data *dd = q->elevator->elevator_data; in dd_bio_merge()
700 ret = blk_mq_sched_try_merge(q, bio, nr_segs, &free); in dd_bio_merge()
715 struct request_queue *q = hctx->queue; in dd_insert_request() local
716 struct deadline_data *dd = q->elevator->elevator_data; in dd_insert_request()
745 if (blk_mq_sched_try_insert_merge(q, rq)) in dd_insert_request()
758 elv_rqhash_add(q, rq); in dd_insert_request()
759 if (!q->last_merge) in dd_insert_request()
760 q->last_merge = rq; in dd_insert_request()
777 struct request_queue *q = hctx->queue; in dd_insert_requests() local
778 struct deadline_data *dd = q->elevator->elevator_data; in dd_insert_requests()
827 struct request_queue *q = rq->q; in dd_finish_request() local
828 struct deadline_data *dd = q->elevator->elevator_data; in dd_finish_request()
836 if (blk_queue_is_zoned(q)) { in dd_finish_request()
939 struct request_queue *q = m->private; \
940 struct deadline_data *dd = q->elevator->elevator_data; \
950 struct request_queue *q = m->private; \
951 struct deadline_data *dd = q->elevator->elevator_data; \
960 struct request_queue *q = m->private; \
961 struct deadline_data *dd = q->elevator->elevator_data; \
976 struct request_queue *q = data; \
977 struct deadline_data *dd = q->elevator->elevator_data; \
996 struct request_queue *q = data; in deadline_batching_show() local
997 struct deadline_data *dd = q->elevator->elevator_data; in deadline_batching_show()
1005 struct request_queue *q = data; in deadline_starved_show() local
1006 struct deadline_data *dd = q->elevator->elevator_data; in deadline_starved_show()
1014 struct request_queue *q = data; in dd_async_depth_show() local
1015 struct deadline_data *dd = q->elevator->elevator_data; in dd_async_depth_show()
1023 struct request_queue *q = data; in dd_queued_show() local
1024 struct deadline_data *dd = q->elevator->elevator_data; in dd_queued_show()
1041 struct request_queue *q = data; in dd_owned_by_driver_show() local
1042 struct deadline_data *dd = q->elevator->elevator_data; in dd_owned_by_driver_show()
1055 struct request_queue *q = m->private; \
1056 struct deadline_data *dd = q->elevator->elevator_data; \
1066 struct request_queue *q = m->private; \
1067 struct deadline_data *dd = q->elevator->elevator_data; \
1076 struct request_queue *q = m->private; \
1077 struct deadline_data *dd = q->elevator->elevator_data; \