Lines Matching refs:wait
144 wait_queue_head_t wait; member
720 init_waitqueue_head(&ctx->wait); in ioctx_alloc()
791 struct ctx_rq_wait *wait) in kill_ioctx() argument
807 wake_up_all(&ctx->wait); in kill_ioctx()
821 ctx->rq_wait = wait; in kill_ioctx()
837 struct ctx_rq_wait wait; in exit_aio() local
843 atomic_set(&wait.count, table->nr); in exit_aio()
844 init_completion(&wait.comp); in exit_aio()
863 kill_ioctx(mm, ctx, &wait); in exit_aio()
866 if (!atomic_sub_and_test(skipped, &wait.count)) { in exit_aio()
868 wait_for_completion(&wait.comp); in exit_aio()
1143 if (waitqueue_active(&ctx->wait)) in aio_complete()
1144 wake_up(&ctx->wait); in aio_complete()
1284 wait_event_interruptible_hrtimeout(ctx->wait, in read_events()
1347 struct ctx_rq_wait wait; in SYSCALL_DEFINE1() local
1350 init_completion(&wait.comp); in SYSCALL_DEFINE1()
1351 atomic_set(&wait.count, 1); in SYSCALL_DEFINE1()
1357 ret = kill_ioctx(current->mm, ioctx, &wait); in SYSCALL_DEFINE1()
1365 wait_for_completion(&wait.comp); in SYSCALL_DEFINE1()