• Home
  • Raw
  • Download

Lines Matching refs:wait

156 		wait_queue_head_t wait;  member
187 struct wait_queue_entry wait; member
746 init_waitqueue_head(&ctx->wait); in ioctx_alloc()
817 struct ctx_rq_wait *wait) in kill_ioctx() argument
833 wake_up_all(&ctx->wait); in kill_ioctx()
847 ctx->rq_wait = wait; in kill_ioctx()
863 struct ctx_rq_wait wait; in exit_aio() local
869 atomic_set(&wait.count, table->nr); in exit_aio()
870 init_completion(&wait.comp); in exit_aio()
890 kill_ioctx(mm, ctx, &wait); in exit_aio()
893 if (!atomic_sub_and_test(skipped, &wait.count)) { in exit_aio()
895 wait_for_completion(&wait.comp); in exit_aio()
1157 if (waitqueue_active(&ctx->wait)) in aio_complete()
1158 wake_up(&ctx->wait); in aio_complete()
1293 wait_event_interruptible_hrtimeout(ctx->wait, in read_events()
1385 struct ctx_rq_wait wait; in SYSCALL_DEFINE1() local
1388 init_completion(&wait.comp); in SYSCALL_DEFINE1()
1389 atomic_set(&wait.count, 1); in SYSCALL_DEFINE1()
1395 ret = kill_ioctx(current->mm, ioctx, &wait); in SYSCALL_DEFINE1()
1403 wait_for_completion(&wait.comp); in SYSCALL_DEFINE1()
1633 add_wait_queue(req->head, &req->wait); in aio_poll_complete_work()
1653 if (!list_empty(&req->wait.entry)) { in aio_poll_cancel()
1654 list_del_init(&req->wait.entry); in aio_poll_cancel()
1662 static int aio_poll_wake(struct wait_queue_entry *wait, unsigned mode, int sync, in aio_poll_wake() argument
1665 struct poll_iocb *req = container_of(wait, struct poll_iocb, wait); in aio_poll_wake()
1674 list_del_init(&req->wait.entry); in aio_poll_wake()
1714 add_wait_queue(head, &pt->iocb->poll.wait); in aio_poll_queue_proc()
1745 INIT_LIST_HEAD(&req->wait.entry); in aio_poll()
1746 init_waitqueue_func_entry(&req->wait, aio_poll_wake); in aio_poll()
1752 if (unlikely(list_empty(&req->wait.entry))) { in aio_poll()
1759 list_del_init(&req->wait.entry); in aio_poll()