[CRIU] [PATCH 13/24] parasite: remove extra synchronisation
Andrey Vagin
avagin at openvz.org
Wed May 22 16:08:14 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 1d5f8d7..9333361 100644
--- a/pie/parasite.c
+++ b/pie/parasite.c
@@ -490,7 +490,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
@@ -540,9 +539,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