2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-09-02 07:15:31 +00:00

rst: Introduce fine-grained pgid-restore synchronization

We can restore task's pgid which is not equal to its pid,
only when the respective group leader is alive. To make
restore reliable we wait for all group leaders to restore
using separate restore stage.

It's better to optimize this -- each task has a pointer on
its group leader and waits for one to become such.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov
2013-09-27 04:38:00 +04:00
parent 656693503e
commit f1edcb32f5
4 changed files with 43 additions and 26 deletions

View File

@@ -182,6 +182,11 @@ struct rst_info {
int service_fd_id;
struct fdt *fdt;
union {
struct pstree_item *pgrp_leader;
futex_t pgrp_set;
};
};
static inline int in_vma_area(struct vma_area *vma, unsigned long addr)