Home
last modified time | relevance | path

Searched refs:wqh (Results 1 – 13 of 13) sorted by relevance

/linux-4.4.14/fs/
Deventfd.c27 wait_queue_head_t wqh; member
58 spin_lock_irqsave(&ctx->wqh.lock, flags); in eventfd_signal()
62 if (waitqueue_active(&ctx->wqh)) in eventfd_signal()
63 wake_up_locked_poll(&ctx->wqh, POLLIN); in eventfd_signal()
64 spin_unlock_irqrestore(&ctx->wqh.lock, flags); in eventfd_signal()
112 wake_up_poll(&ctx->wqh, POLLHUP); in eventfd_release()
123 poll_wait(file, &ctx->wqh, wait); in eventfd_poll()
161 spin_lock_irqsave(&ctx->wqh.lock, flags); in eventfd_ctx_remove_wait_queue()
163 __remove_wait_queue(&ctx->wqh, wait); in eventfd_ctx_remove_wait_queue()
164 if (*cnt != 0 && waitqueue_active(&ctx->wqh)) in eventfd_ctx_remove_wait_queue()
[all …]
Dtimerfd.c36 wait_queue_head_t wqh; member
64 spin_lock_irqsave(&ctx->wqh.lock, flags); in timerfd_triggered()
67 wake_up_locked(&ctx->wqh); in timerfd_triggered()
68 spin_unlock_irqrestore(&ctx->wqh.lock, flags); in timerfd_triggered()
104 spin_lock_irqsave(&ctx->wqh.lock, flags); in timerfd_clock_was_set()
108 wake_up_locked(&ctx->wqh); in timerfd_clock_was_set()
110 spin_unlock_irqrestore(&ctx->wqh.lock, flags); in timerfd_clock_was_set()
225 poll_wait(file, &ctx->wqh, wait); in timerfd_poll()
227 spin_lock_irqsave(&ctx->wqh.lock, flags); in timerfd_poll()
230 spin_unlock_irqrestore(&ctx->wqh.lock, flags); in timerfd_poll()
[all …]
Dsignalfd.c37 wait_queue_head_t *wqh = &sighand->signalfd_wqh; in signalfd_cleanup() local
43 if (likely(!waitqueue_active(wqh))) in signalfd_cleanup()
47 wake_up_poll(wqh, POLLHUP | POLLFREE); in signalfd_cleanup()
Dfs-writeback.c1146 wait_queue_head_t *wqh; in __inode_wait_for_writeback() local
1148 wqh = bit_waitqueue(&inode->i_state, __I_SYNC); in __inode_wait_for_writeback()
1151 __wait_on_bit(wqh, &wq, bit_wait, in __inode_wait_for_writeback()
1176 wait_queue_head_t *wqh = bit_waitqueue(&inode->i_state, __I_SYNC); in inode_sleep_on_writeback() local
1179 prepare_to_wait(wqh, &wait, TASK_UNINTERRUPTIBLE); in inode_sleep_on_writeback()
1184 finish_wait(wqh, &wait); in inode_sleep_on_writeback()
/linux-4.4.14/mm/
Dbacking-dev.c900 wait_queue_head_t *wqh = &congestion_wqh[sync]; in clear_wb_congested() local
907 if (waitqueue_active(wqh)) in clear_wb_congested()
908 wake_up(wqh); in clear_wb_congested()
936 wait_queue_head_t *wqh = &congestion_wqh[sync]; in congestion_wait() local
938 prepare_to_wait(wqh, &wait, TASK_UNINTERRUPTIBLE); in congestion_wait()
940 finish_wait(wqh, &wait); in congestion_wait()
973 wait_queue_head_t *wqh = &congestion_wqh[sync]; in wait_iff_congested() local
1005 prepare_to_wait(wqh, &wait, TASK_UNINTERRUPTIBLE); in wait_iff_congested()
1007 finish_wait(wqh, &wait); in wait_iff_congested()
Dmemcontrol.c180 wait_queue_head_t *wqh; member
3818 remove_wait_queue(event->wqh, &event->wait); in memcg_event_remove()
3869 wait_queue_head_t *wqh, poll_table *pt) in memcg_event_ptable_queue_proc() argument
3874 event->wqh = wqh; in memcg_event_ptable_queue_proc()
3875 add_wait_queue(wqh, &event->wait); in memcg_event_ptable_queue_proc()
/linux-4.4.14/drivers/vfio/
Dvirqfd.c82 wait_queue_head_t *wqh, poll_table *pt) in virqfd_ptable_queue_proc() argument
85 add_wait_queue(wqh, &virqfd->wait); in virqfd_ptable_queue_proc()
/linux-4.4.14/drivers/vhost/
Dvhost.c116 static void vhost_poll_func(struct file *file, wait_queue_head_t *wqh, in vhost_poll_func() argument
122 poll->wqh = wqh; in vhost_poll_func()
123 add_wait_queue(wqh, &poll->wait); in vhost_poll_func()
156 poll->wqh = NULL; in vhost_poll_init()
169 if (poll->wqh) in vhost_poll_start()
176 if (poll->wqh) in vhost_poll_start()
177 remove_wait_queue(poll->wqh, &poll->wait); in vhost_poll_start()
189 if (poll->wqh) { in vhost_poll_stop()
190 remove_wait_queue(poll->wqh, &poll->wait); in vhost_poll_stop()
191 poll->wqh = NULL; in vhost_poll_stop()
Dvhost.h31 wait_queue_head_t *wqh; member
/linux-4.4.14/kernel/locking/
Drtmutex_common.h113 struct wake_q_head *wqh);
Drtmutex.c1374 struct wake_q_head *wqh)) in rt_mutex_fastunlock() argument
1498 struct wake_q_head *wqh) in rt_mutex_futex_unlock() argument
1504 return rt_mutex_slowunlock(lock, wqh); in rt_mutex_futex_unlock()
/linux-4.4.14/drivers/net/usb/
Dkaweth.c1244 wait_queue_head_t wqh; member
1256 wake_up(&awd->wqh); in usb_api_blocking_completion()
1269 init_waitqueue_head(&awd.wqh); in usb_start_wait_urb()
1280 if (!wait_event_timeout(awd.wqh, awd.done, timeout)) { in usb_start_wait_urb()
/linux-4.4.14/virt/kvm/
Deventfd.c236 irqfd_ptable_queue_proc(struct file *file, wait_queue_head_t *wqh, in irqfd_ptable_queue_proc() argument
241 add_wait_queue(wqh, &irqfd->wait); in irqfd_ptable_queue_proc()