Lines Matching refs:event_wqh
52 wait_queue_head_t event_wqh; member
162 VM_BUG_ON(spin_is_locked(&ctx->event_wqh.lock)); in userfaultfd_ctx_put()
163 VM_BUG_ON(waitqueue_active(&ctx->event_wqh)); in userfaultfd_ctx_put()
587 spin_lock(&ctx->event_wqh.lock); in userfaultfd_event_wait_completion()
592 __add_wait_queue(&ctx->event_wqh, &ewq->wq); in userfaultfd_event_wait_completion()
605 __remove_wait_queue(&ctx->event_wqh, &ewq->wq); in userfaultfd_event_wait_completion()
617 spin_unlock(&ctx->event_wqh.lock); in userfaultfd_event_wait_completion()
622 spin_lock(&ctx->event_wqh.lock); in userfaultfd_event_wait_completion()
625 spin_unlock(&ctx->event_wqh.lock); in userfaultfd_event_wait_completion()
656 wake_up_locked(&ctx->event_wqh); in userfaultfd_event_complete()
657 __remove_wait_queue(&ctx->event_wqh, &ewq->wq); in userfaultfd_event_complete()
915 wake_up_all(&ctx->event_wqh); in userfaultfd_release()
950 return find_userfault_in(&ctx->event_wqh); in find_userfault_evt()
984 else if (waitqueue_active(&ctx->event_wqh)) in userfaultfd_poll()
1079 spin_lock(&ctx->event_wqh.lock); in userfaultfd_ctx_read()
1095 spin_unlock(&ctx->event_wqh.lock); in userfaultfd_ctx_read()
1101 spin_unlock(&ctx->event_wqh.lock); in userfaultfd_ctx_read()
1105 spin_unlock(&ctx->event_wqh.lock); in userfaultfd_ctx_read()
1125 spin_lock(&ctx->event_wqh.lock); in userfaultfd_ctx_read()
1147 __add_wait_queue(&ctx->event_wqh, &uwq->wq); in userfaultfd_ctx_read()
1171 spin_unlock(&ctx->event_wqh.lock); in userfaultfd_ctx_read()
1891 init_waitqueue_head(&ctx->event_wqh); in init_once_userfaultfd_ctx()