Lines Matching defs:whead
249 wait_queue_head_t *whead;
600 wait_queue_head_t *whead;
607 * we rely on whead->lock.
609 whead = smp_load_acquire(&pwq->whead);
610 if (whead)
611 remove_wait_queue(whead, &pwq->wait);
877 static void ep_ptable_queue_proc(struct file *file, wait_queue_head_t *whead,
1297 * ->whead = NULL and do another remove_wait_queue() after
1302 * ->whead != NULL protects us from the race with ep_free()
1303 * or ep_remove(), ep_remove_wait_queue() takes whead->lock
1307 smp_store_release(&ep_pwq_from_wait(wait)->whead, NULL);
1317 static void ep_ptable_queue_proc(struct file *file, wait_queue_head_t *whead,
1325 pwq->whead = whead;
1328 add_wait_queue_exclusive(whead, &pwq->wait);
1330 add_wait_queue(whead, &pwq->wait);