Skip to content
Snippets Groups Projects
Commit 2a42e55b authored by vjpai's avatar vjpai
Browse files

Don't annotate a blocking region on an epoll_wait that has 0 timeout

parent 9839d285
No related branches found
No related tags found
No related merge requests found
...@@ -197,9 +197,8 @@ static void multipoll_with_epoll_pollset_maybe_work( ...@@ -197,9 +197,8 @@ static void multipoll_with_epoll_pollset_maybe_work(
} }
if (pfds[1].revents) { if (pfds[1].revents) {
do { do {
GRPC_SCHEDULING_START_BLOCKING_REGION; /* The following epoll_wait never blocks; it has a timeout of 0 */
ep_rv = epoll_wait(h->epoll_fd, ep_ev, GRPC_EPOLL_MAX_EVENTS, 0); ep_rv = epoll_wait(h->epoll_fd, ep_ev, GRPC_EPOLL_MAX_EVENTS, 0);
GRPC_SCHEDULING_END_BLOCKING_REGION;
if (ep_rv < 0) { if (ep_rv < 0) {
if (errno != EINTR) { if (errno != EINTR) {
gpr_log(GPR_ERROR, "epoll_wait() failed: %s", strerror(errno)); gpr_log(GPR_ERROR, "epoll_wait() failed: %s", strerror(errno));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment