Searched refs:rq_wait (Results 1 – 5 of 5) sorted by relevance
/block/ |
D | blk-rq-qos.h | 23 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);
|
D | blk-wbt.c | 105 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 …]
|
D | blk-rq-qos.c | 27 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()
|
D | blk-wbt.h | 69 struct rq_wait rq_wait[WBT_NUM_RWQ]; member 83 ret += atomic_read(&rwb->rq_wait[i].inflight); in wbt_inflight()
|
D | blk-iolatency.c | 144 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()
|