[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openvz-criu
Subject:    [CRIU] [PATCH 0/3] Create pid_ns helpers as children of criu main task
From:       Kirill Tkhai <ktkhai () virtuozzo ! com>
Date:       2017-06-30 17:02:49
Message-ID: 149884190114.5013.12091768773018686700.stgit () localhost ! localdomain
[Download RAW message or body]

This patchset makes pid_ns helpers to be childred
of criu main task. The main goal is to make fail
path of restore more stable. Now we kill the helpers
from usernsd, but there is possible a situation,
that someone was killed without releasing of usernsd
mutex. This case, we may never destroy pid_ns helpers
and may hang. Creating them as children of criu main
task decides such problem: we just kill and wait
them directly.

Spotless: https://travis-ci.org/tkhai/criu/builds/248848153

---

Kirill Tkhai (3):
      pid_ns: Extract functionality of exit of pid_ns helper in function
      utils: Add sys_clone_unified()
      ns: Make pid_ns helpers as children of criu main process


 criu/cr-restore.c         |    8 ++++++++
 criu/include/namespaces.h |    1 +
 criu/include/util.h       |    3 +++
 criu/namespaces.c         |   48 +++++++++++++--------------------------------
 criu/util.c               |   16 ++++++++++++++-
 test/zdtm/lib/test.c      |   20 ++++++++++++++-----
 6 files changed, 56 insertions(+), 40 deletions(-)

--
Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
_______________________________________________
CRIU mailing list
CRIU@openvz.org
https://lists.openvz.org/mailman/listinfo/criu
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic