Lines Matching defs:mtx

47  * 2) ep->mtx (mutex)
58 * mutex (ep->mtx). It is acquired during the event transfer loop,
67 * It is necessary to acquire multiple "ep->mtx"es at once in the
70 * epoll_ctl(e1, EPOLL_CTL_ADD, e2), e1->mtx will always be acquired
71 * before e2->mtx). Since we disallow cycles of epoll file
76 * It is possible to drop the "ep->mtx" and to use the global
78 * but having "ep->mtx" will make the interface more scalable.
80 * normal operations the epoll private "ep->mtx" will guarantee
185 struct mutex mtx;
565 * descriptor. Must be called with "mtx" held.
579 /* call only when ep->mtx is held */
582 return rcu_dereference_check(epi->ws, lockdep_is_held(&epi->ep->mtx));
585 /* call only when ep->mtx is held */
599 /* call when ep->mtx cannot be held (ep_poll_callback) */
707 mutex_destroy(&ep->mtx);
715 * all the associated resources. Must be called with "mtx" held.
768 * ep->mtx. The rcu read side, reverse_path_check_proc(), does not make
795 mutex_lock(&ep->mtx);
823 mutex_unlock(&ep->mtx);
858 mutex_lock_nested(&ep->mtx, depth);
875 mutex_unlock(&ep->mtx);
881 * the ep->mtx so we need to start from depth=1, such that mutex_lock_nested()
909 mutex_lock(&ep->mtx);
923 mutex_unlock(&ep->mtx);
951 * the ep->mtx.
965 mutex_lock(&ep->mtx);
967 mutex_unlock(&ep->mtx);
984 mutex_init(&ep->mtx);
1001 * are protected by the "mtx" mutex, and ep_find() must be called with
1002 * "mtx" held.
1060 mutex_lock(&ep->mtx);
1066 mutex_unlock(&ep->mtx);
1475 * Must be called with "mtx" held.
1509 mutex_lock_nested(&tep->mtx, 1);
1513 mutex_unlock(&tep->mtx);
1524 * protected by "mtx", and ep_insert() is called with "mtx" held.
1528 mutex_unlock(&tep->mtx);
1602 * has a match in the current file status. Must be called with "mtx" held.
1620 epi->event.data = event->data; /* protected by mtx */
1694 mutex_lock(&ep->mtx);
1699 * Items cannot vanish during the loop we are holding ep->mtx.
1728 * deliver the event to userspace. Again, we are holding ep->mtx,
1755 * ep_scan_ready_list() holding "mtx" and the
1763 mutex_unlock(&ep->mtx);
1967 mutex_lock_nested(&ep->mtx, depth + 1);
1994 mutex_unlock(&ep->mtx);
2183 error = epoll_mutex_lock(&ep->mtx, 0, nonblock);
2189 mutex_unlock(&ep->mtx);
2201 error = epoll_mutex_lock(&ep->mtx, 0, nonblock);
2208 * Try to lookup the file inside our RB tree. Since we grabbed "mtx"
2245 mutex_unlock(&ep->mtx);