[CRIU] [PATCH 0/5] parasite: don't daemonize non-leader threads

Andrey Vagin avagin at openvz.org
Mon May 27 08:38:48 EDT 2013


For dumping thread we need to execute only one command, so its
demonization is overload.

This patch blocks all signals and dumps all thread related parameters in
PARASITE_CMD_INIT_THREAD, then registers are dumped for this thread and
the last step is unblocking thread signals.

This patch simplifies a parasite code, because it removes execution of
commands for threads.

Thanks Pavel for this idea.

Andrey Vagin (5):
  parasite: return ability to execute code in a thread with specified
    pid
  parasite: don't daemonize threads
  parasite: remove code which used for daemonized threads
  parasite: remove struct parasite_thread_ctl
  parasite: restore signal blocking mask on error paths

 arch/arm/crtools.c         |   4 +-
 arch/x86/crtools.c         |   4 +-
 cr-exec.c                  |   2 +-
 include/parasite-syscall.h |  35 ++---
 include/parasite.h         |  13 +-
 mem.c                      |   4 +-
 parasite-syscall.c         | 342 +++++++++++++++++++--------------------------
 pie/parasite.c             | 218 +++++++----------------------
 8 files changed, 221 insertions(+), 401 deletions(-)

--
1.8.2



More information about the CRIU mailing list