Lines Matching refs:waiter

642 static void locks_insert_global_blocked(struct file_lock *waiter)  in locks_insert_global_blocked()  argument
646 hash_add(blocked_hash, &waiter->fl_link, posix_owner_key(waiter)); in locks_insert_global_blocked()
649 static void locks_delete_global_blocked(struct file_lock *waiter) in locks_delete_global_blocked() argument
653 hash_del(&waiter->fl_link); in locks_delete_global_blocked()
661 static void __locks_delete_block(struct file_lock *waiter) in __locks_delete_block() argument
663 locks_delete_global_blocked(waiter); in __locks_delete_block()
664 list_del_init(&waiter->fl_blocked_member); in __locks_delete_block()
670 struct file_lock *waiter; in __locks_wake_up_blocks() local
672 waiter = list_first_entry(&blocker->fl_blocked_requests, in __locks_wake_up_blocks()
674 __locks_delete_block(waiter); in __locks_wake_up_blocks()
675 if (waiter->fl_lmops && waiter->fl_lmops->lm_notify) in __locks_wake_up_blocks()
676 waiter->fl_lmops->lm_notify(waiter); in __locks_wake_up_blocks()
678 wake_up(&waiter->fl_wait); in __locks_wake_up_blocks()
685 smp_store_release(&waiter->fl_blocker, NULL); in __locks_wake_up_blocks()
695 int locks_delete_block(struct file_lock *waiter) in locks_delete_block() argument
720 if (!smp_load_acquire(&waiter->fl_blocker) && in locks_delete_block()
721 list_empty(&waiter->fl_blocked_requests)) in locks_delete_block()
725 if (waiter->fl_blocker) in locks_delete_block()
727 __locks_wake_up_blocks(waiter); in locks_delete_block()
728 __locks_delete_block(waiter); in locks_delete_block()
734 smp_store_release(&waiter->fl_blocker, NULL); in locks_delete_block()
756 struct file_lock *waiter, in __locks_insert_block() argument
761 BUG_ON(!list_empty(&waiter->fl_blocked_member)); in __locks_insert_block()
765 if (conflict(fl, waiter)) { in __locks_insert_block()
769 waiter->fl_blocker = blocker; in __locks_insert_block()
770 list_add_tail(&waiter->fl_blocked_member, &blocker->fl_blocked_requests); in __locks_insert_block()
772 locks_insert_global_blocked(waiter); in __locks_insert_block()
778 __locks_wake_up_blocks(waiter); in __locks_insert_block()
783 struct file_lock *waiter, in locks_insert_block() argument
788 __locks_insert_block(blocker, waiter, conflict); in locks_insert_block()