Lines Matching defs:wait
219 * blk_mq_quiesce_queue() - wait until all ongoing dispatches have finished
1140 static int blk_mq_dispatch_wake(wait_queue_entry_t *wait, unsigned mode,
1145 hctx = container_of(wait, struct blk_mq_hw_ctx, dispatch_wait);
1148 if (!list_empty(&wait->entry)) {
1151 list_del_init(&wait->entry);
1172 wait_queue_entry_t *wait;
1180 * allocation failure and adding the hardware queue to the wait
1189 wait = &hctx->dispatch_wait;
1190 if (!list_empty_careful(&wait->entry))
1193 wq = &bt_wait_ptr(sbq, hctx)->wait;
1197 if (!list_empty(&wait->entry)) {
1204 wait->flags &= ~WQ_FLAG_EXCLUSIVE;
1205 __add_wait_queue(wq, wait);
1211 * Order adding us to wait queue and allocating driver tag.
1217 * Otherwise, re-order of adding wait queue and getting driver tag
1219 * the waitqueue_active() may not observe us in wait queue.
1225 * allocation failure and adding the hardware queue to the wait
1236 * We got a tag, remove ourselves from the wait queue to ensure
1239 list_del_init(&wait->entry);
1617 * @msecs: Microseconds of delay to wait before running the queue.
1646 * @msecs: Microseconds of delay to wait before running the queue.
1710 * @msecs: Microseconds of delay to wait before running the queues.
2577 * Try to grab a reference to the queue and wait for any outstanding