Lines Matching defs:wait
155 wait_queue_head_t wait;
188 struct wait_queue_entry wait;
762 init_waitqueue_head(&ctx->wait);
833 struct ctx_rq_wait *wait)
849 wake_up_all(&ctx->wait);
863 ctx->rq_wait = wait;
873 * There may be outstanding kiocbs, but free_ioctx() will explicitly wait on
879 struct ctx_rq_wait wait;
885 atomic_set(&wait.count, table->nr);
886 init_completion(&wait.comp);
906 kill_ioctx(mm, ctx, &wait);
909 if (!atomic_sub_and_test(skipped, &wait.count)) {
911 wait_for_completion(&wait.comp);
1167 * of the wait list below outside the wait lock. This is
1173 if (waitqueue_active(&ctx->wait))
1174 wake_up(&ctx->wait);
1309 wait_event_interruptible_hrtimeout(ctx->wait,
1401 struct ctx_rq_wait wait;
1404 init_completion(&wait.comp);
1405 atomic_set(&wait.count, 1);
1411 ret = kill_ioctx(current->mm, ioctx, &wait);
1419 wait_for_completion(&wait.comp);
1644 * Returns true on success, meaning that req->head->lock was locked, req->wait
1654 * wake_up_pollfree() will wait for us. However, taking the waitqueue
1671 if (!list_empty(&req->wait.entry))
1720 list_del_init(&req->wait.entry);
1748 static int aio_poll_wake(struct wait_queue_entry *wait, unsigned mode, int sync,
1751 struct poll_iocb *req = container_of(wait, struct poll_iocb, wait);
1777 list_del_init(&req->wait.entry);
1816 list_del_init(&req->wait.entry);
1843 /* multiple wait queues per file are not supported */
1852 add_wait_queue(head, &pt->iocb->poll.wait);
1885 INIT_LIST_HEAD(&req->wait.entry);
1886 init_waitqueue_func_entry(&req->wait, aio_poll_wake);
1905 list_del_init(&req->wait.entry);