Lines Matching defs:rqw
200 struct rq_wait *rqw;
217 if (!data->cb(data->rqw, data->private_data))
228 * rq_qos_wait - throttle on a rqw if we need to
229 * @rqw: rqw to throttle on
231 * @acquire_inflight_cb: inc the rqw->inflight counter if we can
237 * inc the rqw->inflight if we have the ability to do so, or return false if not
243 void rq_qos_wait(struct rq_wait *rqw, void *private_data,
253 .rqw = rqw,
259 has_sleeper = wq_has_sleeper(&rqw->wait);
260 if (!has_sleeper && acquire_inflight_cb(rqw, private_data))
263 has_sleeper = !prepare_to_wait_exclusive(&rqw->wait, &data.wq,
269 if (!has_sleeper && acquire_inflight_cb(rqw, private_data)) {
270 finish_wait(&rqw->wait, &data.wq);
279 cleanup_cb(rqw, private_data);
286 finish_wait(&rqw->wait, &data.wq);