criu/include
Andrey Vagin ef3ca3a104 restore: do not kill processes if not-all of them have been created
If processes are restored without pidns, criu knows pidtheir -s from images,
but part of those task may have not yet forked, and thus the pids can not
exist or (!) be used by other processes.

To address that we abort stages RESTORE_NS and FORKING without killing tasks,
but with task_entries->start futex by writing STATE_FAIL into it and making
the tasks to check that. Since during RESTORE_NS and FORKING stages tasks can
only block on the mentioned futes, we can safely do it.

Signed-off-by: Andrey Vagin <avagin@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2013-08-20 15:17:30 +04:00
..
asm-generic asm: Add builtin_memcpy, builtin_memcmp generic helpers 2013-05-23 16:51:14 +04:00
bug.h clang: add an exception for BUG_ON_HANDLER 2013-04-04 14:00:21 +04:00
compiler.h include/compiler.h: Cleanup 2013-02-15 17:34:38 +04:00
cpu.h cpu: Make cpu routines being per-acrh 2013-02-18 18:42:08 +04:00
cr-show.h posix-timer: Add fd, magic and show functionality. 2013-07-01 16:19:24 +04:00
crtools.h page-server: Convert opts.addr into char * 2013-08-11 12:01:14 +04:00
err.h headers: Add err.h header 2013-04-02 20:27:51 +04:00
eventfd.h files: Compact the code by removing per-file dump helpers 2013-06-14 00:11:08 +04:00
eventpoll.h files: Compact the code by removing per-file dump helpers 2013-06-14 00:11:08 +04:00
fifo.h files: Compact the code by removing per-file dump helpers 2013-06-14 00:11:08 +04:00
file-ids.h headers: Change "../protobuf/" to "protobuf/" 2013-02-15 17:33:06 +04:00
file-lock.h lock: Show long option in log message about using one 2013-03-27 20:17:59 +04:00
files-reg.h files: Compact the code by removing per-file dump helpers 2013-06-14 00:11:08 +04:00
files.h files: Convert fdescs hash from list-s into hlist-s 2013-08-10 16:41:18 +04:00
fsnotify.h files: Compact the code by removing per-file dump helpers 2013-06-14 00:11:08 +04:00
image-desc.h posix-timer: Add fd, magic and show functionality. 2013-07-01 16:19:24 +04:00
image.h image: Move image descriptors to own files 2013-05-28 22:12:06 +04:00
inet_diag.h headers: Unify include guards (in comments) and a few fixes 2012-12-25 22:40:24 +04:00
ipc_ns.h crtools: Get rid of on-stack cr_options 2013-05-28 21:11:13 +04:00
kcmp-ids.h headers: Unify include guards (in comments) and a few fixes 2012-12-25 22:40:24 +04:00
kerndat.h soft-dirty: Check that kernel reports soft-dirty bits 2013-04-15 13:24:32 +04:00
libnetlink.h headers: Unify include guards (in comments) and a few fixes 2012-12-25 22:40:24 +04:00
list.h headers: list.h -- Add hlist helpers 2013-04-02 20:29:25 +04:00
lock.h atomic: Use atomic_read instead of atomic_get 2013-08-16 19:37:06 +04:00
log-levels.h headers: Unify include guards (in comments) and a few fixes 2012-12-25 22:40:24 +04:00
log.h log: Make pr_err_once to use pr_err 2013-01-14 14:26:07 +04:00
magic.h posix-timer: Add fd, magic and show functionality. 2013-07-01 16:19:24 +04:00
mem.h mem: Add PME_ bits for page frame retrieval 2013-05-23 12:51:27 +04:00
mount.h crtools: Get rid of on-stack cr_options 2013-05-28 21:11:13 +04:00
namespaces.h files: Compact the code by removing per-file dump helpers 2013-06-14 00:11:08 +04:00
net.h crtools: Get rid of on-stack cr_options 2013-05-28 21:11:13 +04:00
netfilter.h headers: Unify include guards (in comments) and a few fixes 2012-12-25 22:40:24 +04:00
netlink_diag.h crtools: add netlink_diag.h 2013-03-26 00:23:13 +04:00
packet_diag.h headers: Unify include guards (in comments) and a few fixes 2012-12-25 22:40:24 +04:00
page-pipe.h mem: Comment page-read, page-xfer and page-pipe 2013-04-16 11:34:53 +04:00
page-read.h mem: Comment page-read, page-xfer and page-pipe 2013-04-16 11:34:53 +04:00
page-xfer.h page-server: check that all data have been accepted 2013-08-09 15:39:37 +04:00
parasite-syscall.h parasite: Rename ack-waiting function to look better 2013-07-17 08:56:17 +04:00
parasite.h util: Rename pie's util-net.c into util.c 2013-07-29 12:43:30 +04:00
pipes.h files: Compact the code by removing per-file dump helpers 2013-06-14 00:11:08 +04:00
proc_parse.h posix-timer: Parse proc /proc/<pid>/timers and save info in list 2013-07-01 16:19:26 +04:00
protobuf-desc.h posix-timer: Add protobuf message and rename to protobuf/timer.proto 2013-07-01 16:19:23 +04:00
protobuf.h protobuf: Move descriptors definitions to own file 2013-05-28 22:11:59 +04:00
pstree.h parasite: use transparent thread indexes 2013-05-24 18:47:11 +04:00
ptrace.h check: check PTRACE_{GET,SET}SIGMASK 2013-07-16 17:24:16 +04:00
rbtree.h x86: moved x86-specific files into the directory arch/x86. 2013-01-09 17:02:47 +04:00
restorer.h restore: do not kill processes if not-all of them have been created 2013-08-20 15:17:30 +04:00
shmem.h headers: Change "../protobuf/" to "protobuf/" 2013-02-15 17:33:06 +04:00
sigframe.h restore: Add restoration of alternative signal stack 2013-07-10 17:31:12 +04:00
signalfd.h files: Compact the code by removing per-file dump helpers 2013-06-14 00:11:08 +04:00
sk-inet.h inet: Restore SO_REUSEADDR in case of rollback 2013-07-16 14:48:24 +04:00
sk-packet.h files: Compact the code by removing per-file dump helpers 2013-06-14 00:11:08 +04:00
sk-queue.h show: Remove options args from ->show callback 2013-05-08 00:23:42 +04:00
sockets.h files: Compact the code by removing per-file dump helpers 2013-06-14 00:11:08 +04:00
stats.h stats: Account total time to restore 2013-08-11 21:25:42 +04:00
syscall-types.h syscalls: Add proper syscalls definition. 2013-07-01 16:19:21 +04:00
sysctl.h headers: Unify include guards (in comments) and a few fixes 2012-12-25 22:40:24 +04:00
tty.h files: Compact the code by removing per-file dump helpers 2013-06-14 00:11:08 +04:00
unix_diag.h x86: moved x86-specific files into the directory arch/x86. 2013-01-09 17:02:47 +04:00
util-pie.h mount: Factor out detached mountpoint opening 2013-07-29 13:12:00 +04:00
util.h util: Make set_proc_mountpoint static 2013-08-11 20:02:33 +04:00
uts_ns.h crtools: Get rid of on-stack cr_options 2013-05-28 21:11:13 +04:00
vdso.h vdso: Diet include/vdso.h 2013-06-13 19:41:09 +04:00
xmalloc.h headers: util.h -- Move memory helpers to xmalloc.h 2013-04-02 21:15:27 +04:00