Lines Matching defs:whead
121 wait_queue_head_t *whead;
548 wait_queue_head_t *whead;
555 * we rely on whead->lock.
557 whead = smp_load_acquire(&pwq->whead);
558 if (whead)
559 remove_wait_queue(whead, &pwq->wait);
1252 * ->whead = NULL and do another remove_wait_queue() after
1257 * ->whead != NULL protects us from the race with
1259 * takes whead->lock held by the caller. Once we nullify it,
1262 smp_store_release(&ep_pwq_from_wait(wait)->whead, NULL);
1272 static void ep_ptable_queue_proc(struct file *file, wait_queue_head_t *whead,
1289 pwq->whead = whead;
1292 add_wait_queue_exclusive(whead, &pwq->wait);
1294 add_wait_queue(whead, &pwq->wait);