Lines Matching refs:rqos
409 struct rq_qos rqos;
664 static struct ioc *rqos_to_ioc(struct rq_qos *rqos)
666 return container_of(rqos, struct ioc, rqos);
684 return q_name(ioc->rqos.q);
819 if (!blk_queue_nonrot(ioc->rqos.q))
823 if (blk_queue_depth(ioc->rqos.q) == 1)
2562 static void ioc_rqos_throttle(struct rq_qos *rqos, struct bio *bio)
2565 struct ioc *ioc = rqos_to_ioc(rqos);
2645 blkcg_schedule_throttle(rqos->q,
2697 static void ioc_rqos_merge(struct rq_qos *rqos, struct request *rq,
2701 struct ioc *ioc = rqos_to_ioc(rqos);
2746 blkcg_schedule_throttle(rqos->q,
2756 static void ioc_rqos_done_bio(struct rq_qos *rqos, struct bio *bio)
2764 static void ioc_rqos_done(struct rq_qos *rqos, struct request *rq)
2766 struct ioc *ioc = rqos_to_ioc(rqos);
2804 static void ioc_rqos_queue_depth_changed(struct rq_qos *rqos)
2806 struct ioc *ioc = rqos_to_ioc(rqos);
2813 static void ioc_rqos_exit(struct rq_qos *rqos)
2815 struct ioc *ioc = rqos_to_ioc(rqos);
2817 blkcg_deactivate_policy(rqos->q, &blkcg_policy_iocost);
2840 struct rq_qos *rqos;
2863 rqos = &ioc->rqos;
2864 rqos->id = RQ_QOS_COST;
2865 rqos->ops = &ioc_rqos_ops;
2866 rqos->q = q;
2886 * rqos must be added before activation to allow iocg_pd_init() to
2887 * lookup the ioc from q. This means that the rqos methods may get
2891 rq_qos_add(q, rqos);
2894 rq_qos_del(q, rqos);
3267 blk_stat_enable_accounting(ioc->rqos.q);
3268 blk_queue_flag_set(QUEUE_FLAG_RQ_ALLOC_TIME, ioc->rqos.q);
3271 blk_queue_flag_clear(QUEUE_FLAG_RQ_ALLOC_TIME, ioc->rqos.q);