Lines Matching refs:wait
144 wait_queue_head_t wait; member
729 init_waitqueue_head(&ctx->wait); in ioctx_alloc()
800 struct ctx_rq_wait *wait) in kill_ioctx() argument
816 wake_up_all(&ctx->wait); in kill_ioctx()
830 ctx->rq_wait = wait; in kill_ioctx()
846 struct ctx_rq_wait wait; in exit_aio() local
852 atomic_set(&wait.count, table->nr); in exit_aio()
853 init_completion(&wait.comp); in exit_aio()
872 kill_ioctx(mm, ctx, &wait); in exit_aio()
875 if (!atomic_sub_and_test(skipped, &wait.count)) { in exit_aio()
877 wait_for_completion(&wait.comp); in exit_aio()
1152 if (waitqueue_active(&ctx->wait)) in aio_complete()
1153 wake_up(&ctx->wait); in aio_complete()
1293 wait_event_interruptible_hrtimeout(ctx->wait, in read_events()
1356 struct ctx_rq_wait wait; in SYSCALL_DEFINE1() local
1359 init_completion(&wait.comp); in SYSCALL_DEFINE1()
1360 atomic_set(&wait.count, 1); in SYSCALL_DEFINE1()
1366 ret = kill_ioctx(current->mm, ioctx, &wait); in SYSCALL_DEFINE1()
1374 wait_for_completion(&wait.comp); in SYSCALL_DEFINE1()