[CRIU] [PATCH 14/22] parasite: remove extra synchronisation

Andrey Vagin avagin at openvz.org
Wed May 8 09:28:41 EDT 2013


crtools don't send a new command until it gets ack on a previous one.

Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 pie/parasite.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/pie/parasite.c b/pie/parasite.c
index e39211a..c6b3d1c 100644
--- a/pie/parasite.c
+++ b/pie/parasite.c
@@ -468,7 +468,6 @@ static void __parasite_daemon_thread_ack(struct tid_state_s *s, int ret)
 	s->ret = ret;
 	futex_set(&s->ack, PARASITE_CMD_IDLE);
 	futex_set_and_wake(&s->cmd, PARASITE_CMD_IDLE);
-	futex_wait_until(&s->ack, PARASITE_CMD_ACK);
 }
 
 static unsigned long noinline __used
@@ -518,9 +517,6 @@ static int __parasite_execute_thread(struct ctl_msg *m)
 	pr_debug("Wait thread %d for PARASITE_CMD_IDLE\n", s->real);
 	futex_wait_until(&s->cmd, PARASITE_CMD_IDLE);
 
-	pr_debug("Wake thread %d daemon with " __stringify_1(PARASITE_CMD_ACK) "\n", s->real);
-	futex_set_and_wake(&s->ack, PARASITE_CMD_ACK);
-
 	return s->ret;
 }
 
-- 
1.8.2



More information about the CRIU mailing list