Lines Matching refs:head
172 poll->head = NULL;
182 struct wait_queue_head *head = smp_load_acquire(&poll->head);
184 if (head) {
185 spin_lock_irq(&head->lock);
187 poll->head = NULL;
188 spin_unlock_irq(&head->lock);
415 * as req->head is NULL'ed out, the request can be
419 smp_store_release(&poll->head, NULL);
449 poll->head = NULL;
463 struct wait_queue_head *head;
466 /* head is RCU protected, see io_poll_remove_entries() comments */
468 head = smp_load_acquire(&poll->head);
472 * it by taking its head lock. As we're still arming the tw hanlder
475 if (head) {
476 spin_lock_irq(&head->lock);
480 spin_unlock_irq(&head->lock);
483 return !!head;
487 struct wait_queue_head *head,
501 /* double add on the same waitqueue head, ignore */
502 if (first->head == head)
506 if ((*poll_ptr)->head == head)
533 poll->head = head;
537 add_wait_queue_exclusive(head, &poll->wait);
539 add_wait_queue(head, &poll->wait);
542 static void io_poll_queue_proc(struct file *file, struct wait_queue_head *head,
548 __io_queue_proc(poll, pt, head,
653 static void io_async_queue_proc(struct file *file, struct wait_queue_head *head,
659 __io_queue_proc(&apoll->poll, pt, head, &apoll->double_poll);