Lines Matching refs:rq_qos

28 struct rq_qos {  struct
32 struct rq_qos *next; argument
39 void (*throttle)(struct rq_qos *, struct bio *); argument
40 void (*track)(struct rq_qos *, struct request *, struct bio *);
41 void (*merge)(struct rq_qos *, struct request *, struct bio *);
42 void (*issue)(struct rq_qos *, struct request *);
43 void (*requeue)(struct rq_qos *, struct request *);
44 void (*done)(struct rq_qos *, struct request *);
45 void (*done_bio)(struct rq_qos *, struct bio *);
46 void (*cleanup)(struct rq_qos *, struct bio *);
47 void (*queue_depth_changed)(struct rq_qos *);
48 void (*exit)(struct rq_qos *);
62 static inline struct rq_qos *rq_qos_id(struct request_queue *q, in rq_qos_id()
65 struct rq_qos *rqos; in rq_qos_id()
66 for (rqos = q->rq_qos; rqos; rqos = rqos->next) { in rq_qos_id()
73 static inline struct rq_qos *wbt_rq_qos(struct request_queue *q) in wbt_rq_qos()
78 static inline struct rq_qos *blkcg_rq_qos(struct request_queue *q) in blkcg_rq_qos()
89 static inline void rq_qos_add(struct request_queue *q, struct rq_qos *rqos) in rq_qos_add()
101 rqos->next = q->rq_qos; in rq_qos_add()
102 q->rq_qos = rqos; in rq_qos_add()
111 static inline void rq_qos_del(struct request_queue *q, struct rq_qos *rqos) in rq_qos_del()
113 struct rq_qos **cur; in rq_qos_del()
122 for (cur = &q->rq_qos; *cur; cur = &(*cur)->next) { in rq_qos_del()
146 void __rq_qos_cleanup(struct rq_qos *rqos, struct bio *bio);
147 void __rq_qos_done(struct rq_qos *rqos, struct request *rq);
148 void __rq_qos_issue(struct rq_qos *rqos, struct request *rq);
149 void __rq_qos_requeue(struct rq_qos *rqos, struct request *rq);
150 void __rq_qos_throttle(struct rq_qos *rqos, struct bio *bio);
151 void __rq_qos_track(struct rq_qos *rqos, struct request *rq, struct bio *bio);
152 void __rq_qos_merge(struct rq_qos *rqos, struct request *rq, struct bio *bio);
153 void __rq_qos_done_bio(struct rq_qos *rqos, struct bio *bio);
154 void __rq_qos_queue_depth_changed(struct rq_qos *rqos);
158 if (q->rq_qos) in rq_qos_cleanup()
159 __rq_qos_cleanup(q->rq_qos, bio); in rq_qos_cleanup()
164 if (q->rq_qos) in rq_qos_done()
165 __rq_qos_done(q->rq_qos, rq); in rq_qos_done()
170 if (q->rq_qos) in rq_qos_issue()
171 __rq_qos_issue(q->rq_qos, rq); in rq_qos_issue()
176 if (q->rq_qos) in rq_qos_requeue()
177 __rq_qos_requeue(q->rq_qos, rq); in rq_qos_requeue()
182 if (q->rq_qos) in rq_qos_done_bio()
183 __rq_qos_done_bio(q->rq_qos, bio); in rq_qos_done_bio()
193 if (q->rq_qos) in rq_qos_throttle()
194 __rq_qos_throttle(q->rq_qos, bio); in rq_qos_throttle()
200 if (q->rq_qos) in rq_qos_track()
201 __rq_qos_track(q->rq_qos, rq, bio); in rq_qos_track()
207 if (q->rq_qos) in rq_qos_merge()
208 __rq_qos_merge(q->rq_qos, rq, bio); in rq_qos_merge()
213 if (q->rq_qos) in rq_qos_queue_depth_changed()
214 __rq_qos_queue_depth_changed(q->rq_qos); in rq_qos_queue_depth_changed()