Lines Matching defs:rqw
206 struct rq_wait *rqw;
223 if (!data->cb(data->rqw, data->private_data))
234 * rq_qos_wait - throttle on a rqw if we need to
235 * @rqw: rqw to throttle on
237 * @acquire_inflight_cb: inc the rqw->inflight counter if we can
243 * inc the rqw->inflight if we have the ability to do so, or return false if not
249 void rq_qos_wait(struct rq_wait *rqw, void *private_data,
259 .rqw = rqw,
265 has_sleeper = wq_has_sleeper(&rqw->wait);
266 if (!has_sleeper && acquire_inflight_cb(rqw, private_data))
269 has_sleeper = !prepare_to_wait_exclusive(&rqw->wait, &data.wq,
275 if (!has_sleeper && acquire_inflight_cb(rqw, private_data)) {
276 finish_wait(&rqw->wait, &data.wq);
285 cleanup_cb(rqw, private_data);
292 finish_wait(&rqw->wait, &data.wq);