aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/iomgr/ev_epoll_linux.c
diff options
context:
space:
mode:
authorGravatar Vijay Pai <vpai@google.com>2016-08-28 23:05:31 -0700
committerGravatar Vijay Pai <vpai@google.com>2016-08-28 23:05:31 -0700
commitcef5401b2e01c0d0b5e86e825b2ec28363b9b63d (patch)
tree41cc894208cd79c128b1ee17b4ac8a4ecc57b7b8 /src/core/lib/iomgr/ev_epoll_linux.c
parentb50eea8669a74f4ea3f284fcad6ee69d1f944046 (diff)
Mark an epoll that has a timeout as a blocking region
Diffstat (limited to 'src/core/lib/iomgr/ev_epoll_linux.c')
-rw-r--r--src/core/lib/iomgr/ev_epoll_linux.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/lib/iomgr/ev_epoll_linux.c b/src/core/lib/iomgr/ev_epoll_linux.c
index 02bcbaa10f..27264694d1 100644
--- a/src/core/lib/iomgr/ev_epoll_linux.c
+++ b/src/core/lib/iomgr/ev_epoll_linux.c
@@ -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,