[CRIU] Re: [PATCH cr 1/2] restore: clean up code, which synchronizes resume of tasks (v2)

Pavel Emelyanov xemul at parallels.com
Thu Feb 2 06:38:15 EST 2012


On 02/02/2012 02:32 PM, Andrey Vagin wrote:
> 
> I added two mechanism of synchronization. The second one is better.
> This patch deletes the first one.
> 
> Before we had an entry (pid and lock) for each tasks and all this
> entries were shared between all processes. Now we don't need "lock"
> and we use pids from crtools to kill all processes if someone failed.
> 
> v2: s/malloc/xmalloc
> 
> Signed-off-by: Andrey Vagin <avagin at openvz.org>

Acked-by: Pavel Emelyanov <xemul at parallels.com>

> ---
>  cr-restore.c       |   44 +++++++++++++++++++-------------------------
>  include/restorer.h |   18 ------------------
>  restorer.c         |    3 ---
>  3 files changed, 19 insertions(+), 46 deletions(-)
> 



More information about the CRIU mailing list