Commit b4e27682 authored by Kirill Tkhai's avatar Kirill Tkhai Committed by Pavel Emelyanov

eventpoll: Fix dependency check

In the case when one eventpoll in polled by another eventpoll,
we should wait till the polled epoll is opened. So, as the stage
FLE_RESTORED is after FLE_OPEN, it's also OK.

travis-ci: success for eventpoll: Fix dependency check
Signed-off-by: 's avatarKirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent a80aba14
...@@ -158,7 +158,7 @@ static int epoll_not_ready_tfd(EventpollTfdEntry *tdefe) ...@@ -158,7 +158,7 @@ static int epoll_not_ready_tfd(EventpollTfdEntry *tdefe)
continue; continue;
if (fle->desc->ops->type == FD_TYPES__EVENTPOLL) if (fle->desc->ops->type == FD_TYPES__EVENTPOLL)
return (fle->stage != FLE_OPEN); return (fle->stage < FLE_OPEN);
else else
return (fle->stage != FLE_RESTORED); return (fle->stage != FLE_RESTORED);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment