Lines Matching defs:mtx
47 * 2) ep->mtx (mutex)
58 * mutex (ep->mtx). It is acquired during the event transfer loop,
73 * It is necessary to acquire multiple "ep->mtx"es at once in the
76 * epoll_ctl(e1, EPOLL_CTL_ADD, e2), e1->mtx will always be acquired
77 * before e2->mtx). Since we disallow cycles of epoll file
82 * It is possible to drop the "ep->mtx" and to use the global
84 * but having "ep->mtx" will make the interface more scalable.
86 * normal operations the epoll private "ep->mtx" will guarantee
188 struct mutex mtx;
617 * descriptor. Must be called with "mtx" held (or "epmutex" if called from
634 /* call only when ep->mtx is held */
637 return rcu_dereference_check(epi->ws, lockdep_is_held(&epi->ep->mtx));
640 /* call only when ep->mtx is held */
654 /* call when ep->mtx cannot be held (ep_poll_callback) */
675 * @ep_locked: caller already holds ep->mtx
696 mutex_lock_nested(&ep->mtx, depth);
760 mutex_unlock(&ep->mtx);
773 * all the associated resources. Must be called with "mtx" held.
803 * ep->mtx. The rcu read side, reverse_path_check_proc(), does not make
825 * We do not need to hold "ep->mtx" here because the epoll file
847 * We do not need to lock ep->mtx, either, we only do it to prevent
850 mutex_lock(&ep->mtx);
856 mutex_unlock(&ep->mtx);
859 mutex_destroy(&ep->mtx);
882 * the ep->mtx so we need to start from depth=1, such that mutex_lock_nested()
953 mutex_lock(&ep->mtx);
967 mutex_unlock(&ep->mtx);
999 * "ep->mtx" after "epmutex" because ep_remove() requires it when called
1007 mutex_lock_nested(&ep->mtx, 0);
1009 mutex_unlock(&ep->mtx);
1026 mutex_init(&ep->mtx);
1046 * are protected by the "mtx" mutex, and ep_find() must be called with
1047 * "mtx" held.
1105 mutex_lock(&ep->mtx);
1111 mutex_unlock(&ep->mtx);
1496 * Must be called with "mtx" held.
1539 * protected by "mtx", and ep_insert() is called with "mtx" held.
1610 * list, since that is used/cleaned only inside a section bound by "mtx".
1611 * And ep_insert() is called with "mtx" held.
1628 * has a match in the current file status. Must be called with "mtx" held.
1646 epi->event.data = event->data; /* protected by mtx */
1718 * holding "mtx" during this call.
1720 lockdep_assert_held(&ep->mtx);
1747 * is holding ep->mtx, so no operations coming from userspace
1775 * ep_scan_ready_list() holding "mtx" and the
2013 mutex_lock_nested(&ep->mtx, call_nests + 1);
2042 mutex_unlock(&ep->mtx);
2221 error = epoll_mutex_lock(&ep->mtx, 0, nonblock);
2228 mutex_unlock(&ep->mtx);
2243 error = epoll_mutex_lock(&ep->mtx, 0, nonblock);
2248 error = epoll_mutex_lock(&tep->mtx, 1, nonblock);
2250 mutex_unlock(&ep->mtx);
2258 * Try to lookup the file inside our RB tree, Since we grabbed "mtx"
2290 mutex_unlock(&tep->mtx);
2291 mutex_unlock(&ep->mtx);