-
Andrew Vagin authored
Currently we mark a mount namespaces as populated when a target process (ns_pid) switches into it. But if a process inherited the right namespace from a parent, it doesn't call do_restore_task_mnt_ns() and a namespace can remain unmarked. af55c059 ("mount: fix a race between restoring namespaces and file mappings") After this patch we could simplify logic around ns_populated. Currently it's a futex, but nodoby waits on it. We can set ns_populated when we are going to close namespace descriptors. To avoid additional locks, we can do this when all task pass the forking stage and don't start the next stage. v2: add a comment why we wait a CR_STATE_FORKING stage Signed-off-by:
Andrew Vagin <avagin@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
3cbda075
Name |
Last commit
|
Last update |
---|---|---|
Documentation | ||
contrib | ||
coredump | ||
crit | ||
criu | ||
images | ||
lib | ||
scripts | ||
test | ||
.gitignore | ||
.mailmap | ||
.travis.yml | ||
COPYING | ||
CREDITS | ||
INSTALL.md | ||
Makefile | ||
Makefile.install | ||
Makefile.versions | ||
README.md |