Lines Matching refs:rqos
92 struct rq_qos rqos;
97 static inline struct rq_wb *RQWB(struct rq_qos *rqos)
99 return container_of(rqos, struct rq_wb, rqos);
168 struct backing_dev_info *bdi = rwb->rqos.disk->bdi;
229 static void __wbt_done(struct rq_qos *rqos, enum wbt_flags wb_acct)
231 struct rq_wb *rwb = RQWB(rqos);
245 static void wbt_done(struct rq_qos *rqos, struct request *rq)
247 struct rq_wb *rwb = RQWB(rqos);
259 __wbt_done(rqos, wbt_flags(rq));
306 struct backing_dev_info *bdi = rwb->rqos.disk->bdi;
359 struct backing_dev_info *bdi = rwb->rqos.disk->bdi;
429 if (!rwb->rqos.disk)
434 trace_wbt_timer(rwb->rqos.disk->bdi, status, rqd->scale_step, inflight);
495 struct rq_qos *rqos = wbt_rq_qos(q);
497 return !rqos || !rwb_enabled(RQWB(rqos));
502 struct rq_qos *rqos = wbt_rq_qos(q);
503 if (!rqos)
505 return RQWB(rqos)->min_lat_nsec;
510 struct rq_qos *rqos = wbt_rq_qos(q);
511 if (!rqos)
514 RQWB(rqos)->min_lat_nsec = val;
516 RQWB(rqos)->enable_state = WBT_STATE_ON_MANUAL;
518 RQWB(rqos)->enable_state = WBT_STATE_OFF_MANUAL;
520 wbt_update_limits(RQWB(rqos));
635 static void wbt_cleanup(struct rq_qos *rqos, struct bio *bio)
637 struct rq_wb *rwb = RQWB(rqos);
639 __wbt_done(rqos, flags);
647 static void wbt_wait(struct rq_qos *rqos, struct bio *bio)
649 struct rq_wb *rwb = RQWB(rqos);
665 static void wbt_track(struct rq_qos *rqos, struct request *rq, struct bio *bio)
667 struct rq_wb *rwb = RQWB(rqos);
671 static void wbt_issue(struct rq_qos *rqos, struct request *rq)
673 struct rq_wb *rwb = RQWB(rqos);
691 static void wbt_requeue(struct rq_qos *rqos, struct request *rq)
693 struct rq_wb *rwb = RQWB(rqos);
704 struct rq_qos *rqos = wbt_rq_qos(q);
705 if (rqos)
706 RQWB(rqos)->wc = write_cache_on;
715 struct rq_qos *rqos;
723 rqos = wbt_rq_qos(q);
724 if (rqos) {
725 if (enable && RQWB(rqos)->enable_state == WBT_STATE_OFF_DEFAULT)
726 RQWB(rqos)->enable_state = WBT_STATE_ON_DEFAULT;
764 static void wbt_queue_depth_changed(struct rq_qos *rqos)
766 RQWB(rqos)->rq_depth.queue_depth = blk_queue_depth(rqos->disk->queue);
767 wbt_update_limits(RQWB(rqos));
770 static void wbt_exit(struct rq_qos *rqos)
772 struct rq_wb *rwb = RQWB(rqos);
774 blk_stat_remove_callback(rqos->disk->queue, rwb->cb);
784 struct rq_qos *rqos = wbt_rq_qos(disk->queue);
786 if (!rqos)
788 rwb = RQWB(rqos);
799 struct rq_qos *rqos = data;
800 struct rq_wb *rwb = RQWB(rqos);
808 struct rq_qos *rqos = data;
809 struct rq_wb *rwb = RQWB(rqos);
817 struct rq_qos *rqos = data;
819 seq_printf(m, "%u\n", rqos->id);
825 struct rq_qos *rqos = data;
826 struct rq_wb *rwb = RQWB(rqos);
837 struct rq_qos *rqos = data;
838 struct rq_wb *rwb = RQWB(rqos);
846 struct rq_qos *rqos = data;
847 struct rq_wb *rwb = RQWB(rqos);
855 struct rq_qos *rqos = data;
856 struct rq_wb *rwb = RQWB(rqos);
864 struct rq_qos *rqos = data;
865 struct rq_wb *rwb = RQWB(rqos);
931 ret = rq_qos_add(&rwb->rqos, disk, RQ_QOS_WBT, &wbt_rqos_ops);