Home
last modified time | relevance | path

Searched refs:rqw (Results 1 – 4 of 4) sorted by relevance

/block/
Dblk-rq-qos.c206 struct rq_wait *rqw; member
223 if (!data->cb(data->rqw, data->private_data)) in rq_qos_wake_function()
249 void rq_qos_wait(struct rq_wait *rqw, void *private_data, in rq_qos_wait() argument
259 .rqw = rqw, in rq_qos_wait()
265 has_sleeper = wq_has_sleeper(&rqw->wait); in rq_qos_wait()
266 if (!has_sleeper && acquire_inflight_cb(rqw, private_data)) in rq_qos_wait()
269 has_sleeper = !prepare_to_wait_exclusive(&rqw->wait, &data.wq, in rq_qos_wait()
275 if (!has_sleeper && acquire_inflight_cb(rqw, private_data)) { in rq_qos_wait()
276 finish_wait(&rqw->wait, &data.wq); in rq_qos_wait()
285 cleanup_cb(rqw, private_data); in rq_qos_wait()
[all …]
Dblk-wbt.c121 struct rq_wait *rqw = &rwb->rq_wait[i]; in rwb_wake_all() local
123 if (wq_has_sleeper(&rqw->wait)) in rwb_wake_all()
124 wake_up_all(&rqw->wait); in rwb_wake_all()
128 static void wbt_rqw_done(struct rq_wb *rwb, struct rq_wait *rqw, in wbt_rqw_done() argument
133 inflight = atomic_dec_return(&rqw->inflight); in wbt_rqw_done()
162 if (wq_has_sleeper(&rqw->wait)) { in wbt_rqw_done()
166 wake_up_all(&rqw->wait); in wbt_rqw_done()
173 struct rq_wait *rqw; in __wbt_done() local
178 rqw = get_rq_wait(rwb, wb_acct); in __wbt_done()
179 wbt_rqw_done(rwb, rqw, wb_acct); in __wbt_done()
[all …]
Dblk-iolatency.c273 static void iolat_cleanup_cb(struct rq_wait *rqw, void *private_data) in iolat_cleanup_cb() argument
275 atomic_dec(&rqw->inflight); in iolat_cleanup_cb()
276 wake_up(&rqw->wait); in iolat_cleanup_cb()
279 static bool iolat_acquire_inflight(struct rq_wait *rqw, void *private_data) in iolat_acquire_inflight() argument
282 return rq_wait_inc_below(rqw, iolat->rq_depth.max_depth); in iolat_acquire_inflight()
290 struct rq_wait *rqw = &iolat->rq_wait; in __blkcg_iolatency_throttle() local
304 atomic_inc(&rqw->inflight); in __blkcg_iolatency_throttle()
308 rq_qos_wait(rqw, iolat, iolat_acquire_inflight, iolat_cleanup_cb); in __blkcg_iolatency_throttle()
596 struct rq_wait *rqw; in blkcg_iolatency_done_bio() local
621 rqw = &iolat->rq_wait; in blkcg_iolatency_done_bio()
[all …]
Dblk-rq-qos.h144 typedef bool (acquire_inflight_cb_t)(struct rq_wait *rqw, void *private_data);
145 typedef void (cleanup_cb_t)(struct rq_wait *rqw, void *private_data);
147 void rq_qos_wait(struct rq_wait *rqw, void *private_data,