[CRIU] [PATCH] eventpoll: Fix dependency check

Kirill Tkhai ktkhai at virtuozzo.com
Wed Feb 1 03:06:46 PST 2017


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.

https://jira.sw.ru/browse/PSBM-59550

Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
 criu/eventpoll.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/criu/eventpoll.c b/criu/eventpoll.c
index 3c6f12da6..e8831c112 100644
--- a/criu/eventpoll.c
+++ b/criu/eventpoll.c
@@ -158,7 +158,7 @@ static int epoll_not_ready_tfd(EventpollTfdEntry *tdefe)
 			continue;
 
 		if (fle->desc->ops->type == FD_TYPES__EVENTPOLL)
-			return (fle->stage != FLE_OPEN);
+			return (fle->stage < FLE_OPEN);
 		else
 			return (fle->stage != FLE_RESTORED);
 	}



More information about the CRIU mailing list