Lines Matching refs:list
107 WARN_ONCE(c, "DEBUG_RWSEMS_WARN_ON(%s): count = 0x%lx, magic = 0x%lx, owner = 0x%lx, curr 0x%lx, list %sempty\n",\
352 struct list_head list;
359 list_first_entry(&sem->wait_list, struct rwsem_waiter, list)
362 RWSEM_WAKE_ANY, /* Wake whatever's at head of wait list */
368 WRITER_NOT_FIRST, /* Writer is not first in wait list */
369 WRITER_FIRST, /* Writer is first in wait list */
397 * - woken process blocks are discarded from the list after having task zeroed
495 * 1) Collect the read-waiters in a separate list, count them and
497 * 2) For each waiters in the new list, clear waiter->task and
501 list_for_each_entry_safe(waiter, tmp, &sem->wait_list, list) {
506 list_move_tail(&waiter->list, &wlist);
518 /* hit end of list above */
533 list_for_each_entry_safe(waiter, tmp, &wlist, list) {
556 * race conditions between checking the rwsem wait list and setting the
1018 * Wake up other readers in the wait list if the front
1059 list_add_tail(&waiter.list, &sem->wait_list);
1108 list_del(&waiter.list);
1169 /* account for this before adding a new element to the list */
1172 list_add_tail(&waiter.list, &sem->wait_list);
1268 list_del(&waiter.list);
1278 list_del(&waiter.list);