Home
last modified time | relevance | path

Searched refs:rq_wait (Results 1 – 5 of 5) sorted by relevance

/block/
Dblk-rq-qos.h23 struct rq_wait { struct
83 static inline void rq_wait_init(struct rq_wait *rq_wait) in rq_wait_init() argument
85 atomic_set(&rq_wait->inflight, 0); in rq_wait_init()
86 init_waitqueue_head(&rq_wait->wait); in rq_wait_init()
135 typedef bool (acquire_inflight_cb_t)(struct rq_wait *rqw, void *private_data);
136 typedef void (cleanup_cb_t)(struct rq_wait *rqw, void *private_data);
138 void rq_qos_wait(struct rq_wait *rqw, void *private_data,
141 bool rq_wait_inc_below(struct rq_wait *rq_wait, unsigned int limit);
Dblk-wbt.c105 static inline struct rq_wait *get_rq_wait(struct rq_wb *rwb, in get_rq_wait()
109 return &rwb->rq_wait[WBT_RWQ_KSWAPD]; in get_rq_wait()
111 return &rwb->rq_wait[WBT_RWQ_DISCARD]; in get_rq_wait()
113 return &rwb->rq_wait[WBT_RWQ_BG]; in get_rq_wait()
121 struct rq_wait *rqw = &rwb->rq_wait[i]; in rwb_wake_all()
128 static void wbt_rqw_done(struct rq_wb *rwb, struct rq_wait *rqw, in wbt_rqw_done()
173 struct rq_wait *rqw; in __wbt_done()
493 static bool wbt_inflight_cb(struct rq_wait *rqw, void *private_data) in wbt_inflight_cb()
499 static void wbt_cleanup_cb(struct rq_wait *rqw, void *private_data) in wbt_cleanup_cb()
512 struct rq_wait *rqw = get_rq_wait(rwb, wb_acct); in __wbt_wait()
[all …]
Dblk-rq-qos.c27 bool rq_wait_inc_below(struct rq_wait *rq_wait, unsigned int limit) in rq_wait_inc_below() argument
29 return atomic_inc_below(&rq_wait->inflight, limit); in rq_wait_inc_below()
206 struct rq_wait *rqw;
249 void rq_qos_wait(struct rq_wait *rqw, void *private_data, in rq_qos_wait()
Dblk-wbt.h69 struct rq_wait rq_wait[WBT_NUM_RWQ]; member
83 ret += atomic_read(&rwb->rq_wait[i].inflight); in wbt_inflight()
Dblk-iolatency.c144 struct rq_wait rq_wait; member
273 static void iolat_cleanup_cb(struct rq_wait *rqw, void *private_data) in iolat_cleanup_cb()
279 static bool iolat_acquire_inflight(struct rq_wait *rqw, void *private_data) in iolat_acquire_inflight()
290 struct rq_wait *rqw = &iolat->rq_wait; in __blkcg_iolatency_throttle()
387 wake_up_all(&iolat->rq_wait.wait); in scale_change()
458 wake_up_all(&iolat->rq_wait.wait); in check_scale_change()
596 struct rq_wait *rqw; in blkcg_iolatency_done_bio()
621 rqw = &iolat->rq_wait; in blkcg_iolatency_done_bio()
993 rq_wait_init(&iolat->rq_wait); in iolatency_pd_init()