Lines Matching refs:mtx

48  * 2) ep->mtx (mutex)
59 * mutex (ep->mtx). It is acquired during the event transfer loop,
68 * It is necessary to acquire multiple "ep->mtx"es at once in the
71 * epoll_ctl(e1, EPOLL_CTL_ADD, e2), e1->mtx will always be acquired
72 * before e2->mtx). Since we disallow cycles of epoll file
77 * It is possible to drop the "ep->mtx" and to use the global
79 * but having "ep->mtx" will make the interface more scalable.
81 * normal operations the epoll private "ep->mtx" will guarantee
186 struct mutex mtx;
681 * descriptor. Must be called with "mtx" held.
695 /* call only when ep->mtx is held */
698 return rcu_dereference_check(epi->ws, lockdep_is_held(&epi->ep->mtx));
701 /* call only when ep->mtx is held */
715 /* call when ep->mtx cannot be held (ep_poll_callback) */
818 mutex_destroy(&ep->mtx);
826 * all the associated resources. Must be called with "mtx" held.
880 * ep->mtx. The rcu read side, reverse_path_check_proc(), does not make
907 mutex_lock(&ep->mtx);
935 mutex_unlock(&ep->mtx);
991 mutex_lock_nested(&ep->mtx, depth);
1008 mutex_unlock(&ep->mtx);
1020 * But for epoll, users hold the ep->mtx mutex, and as such any file in
1042 * the ep->mtx so we need to start from depth=1, such that mutex_lock_nested()
1078 mutex_lock(&ep->mtx);
1092 mutex_unlock(&ep->mtx);
1122 * the ep->mtx.
1136 mutex_lock(&ep->mtx);
1138 mutex_unlock(&ep->mtx);
1155 mutex_init(&ep->mtx);
1172 * are protected by the "mtx" mutex, and ep_find() must be called with
1173 * "mtx" held.
1231 mutex_lock(&ep->mtx);
1237 mutex_unlock(&ep->mtx);
1650 * Must be called with "mtx" held.
1684 mutex_lock_nested(&tep->mtx, 1);
1688 mutex_unlock(&tep->mtx);
1699 * protected by "mtx", and ep_insert() is called with "mtx" held.
1703 mutex_unlock(&tep->mtx);
1777 * has a match in the current file status. Must be called with "mtx" held.
1795 epi->event.data = event->data; /* protected by mtx */
1869 mutex_lock(&ep->mtx);
1874 * Items cannot vanish during the loop we are holding ep->mtx.
1903 * deliver the event to userspace. Again, we are holding ep->mtx,
1930 * ep_send_events() holding "mtx" and the
1938 mutex_unlock(&ep->mtx);
2145 mutex_lock_nested(&ep->mtx, depth + 1);
2172 mutex_unlock(&ep->mtx);
2358 error = epoll_mutex_lock(&ep->mtx, 0, nonblock);
2364 mutex_unlock(&ep->mtx);
2376 error = epoll_mutex_lock(&ep->mtx, 0, nonblock);
2383 * Try to lookup the file inside our RB tree. Since we grabbed "mtx"
2420 mutex_unlock(&ep->mtx);