Skip to content

Commit

Permalink
Merge pull request grpc#7905 from vjpai/epoll_blocks
Browse files Browse the repository at this point in the history
Mark epoll_{,p}wait as blocking regions if they have a timeout
  • Loading branch information
ctiller authored Aug 29, 2016
2 parents b50eea8 + cef5401 commit 6e34f81
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/lib/iomgr/ev_epoll_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -1353,8 +1353,10 @@ static void pollset_work_and_unlock(grpc_exec_ctx *exec_ctx,
gpr_mu_unlock(&pollset->mu);

do {
GRPC_SCHEDULING_START_BLOCKING_REGION;
ep_rv = epoll_pwait(epoll_fd, ep_ev, GRPC_EPOLL_MAX_EVENTS, timeout_ms,
sig_mask);
GRPC_SCHEDULING_END_BLOCKING_REGION;
if (ep_rv < 0) {
if (errno != EINTR) {
gpr_asprintf(&err_msg,
Expand Down

0 comments on commit 6e34f81

Please sign in to comment.