[CRIU] [PATCH 2/7] parasite: Rework init to be able to handle per-threads data

Cyrill Gorcunov gorcunov at openvz.org
Sun Nov 4 15:06:49 EST 2012


The threads have own blocked signals set thus we will need
to keep the mask in dynamically allocated memory. This patch
prepares the ground for further patches makes init() procedure
to allocate the needed memory slab.

Same time we move @old_blocked and @reset_blocked which were
per-parasite to per-thread memory.

Note that per-thread here is not the same as TLS or a per-cpu
variables in kernel. It rather means we allocate memory area
where each thread will have own offset for data it may use.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 cr-dump.c                  |    2 +-
 include/parasite-syscall.h |    1 +
 include/parasite.h         |    3 ++
 parasite-syscall.c         |    8 ++++--
 parasite.c                 |   50 +++++++++++++++++++++++++++++++++----------
 5 files changed, 48 insertions(+), 16 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-parasite-Rework-init-to-be-able-to-handle-per-thread.patch
Type: text/x-patch
Size: 5373 bytes
Desc: not available
URL: <http://lists.openvz.org/pipermail/criu/attachments/20121105/a89b59a9/attachment.bin>


More information about the CRIU mailing list