aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/root.c
diff options
context:
space:
mode:
authorPavel Emelyanov <[email protected]>2007-10-19 06:40:01 +0000
committerLinus Torvalds <[email protected]>2007-10-19 18:53:38 +0000
commit2e4a707269a409950c3f315010c20f9719c594e2 (patch)
treed25109a6b36bdcb78382d379bdba4c4e83150389 /fs/proc/root.c
parentpid namespaces: rework forget_original_parent() (diff)
downloadkernel-2e4a707269a409950c3f315010c20f9719c594e2.tar.gz
kernel-2e4a707269a409950c3f315010c20f9719c594e2.zip
pid namespaces: move exit_task_namespaces()
Make task release its namespaces after it has reparented all his children to child_reaper, but before it notifies its parent about its death. The reason to release namespaces after reparenting is that when task exits it may send a signal to its parent (SIGCHLD), but if the parent has already exited its namespaces there will be no way to decide what pid to dever to him - parent can be from different namespace. The reason to release namespace before notifying the parent it that when task sends a SIGCHLD to parent it can call wait() on this taks and release it. But releasing the mnt namespace implies dropping of all the mounts in the mnt namespace and NFS expects the task to have valid sighand pointer. Thanks to Oleg for pointing out some races that can apear and helping with patches and fixes. Signed-off-by: Pavel Emelyanov <[email protected]> Cc: Oleg Nesterov <[email protected]> Cc: Sukadev Bhattiprolu <[email protected]> Cc: Paul Menage <[email protected]> Cc: "Eric W. Biederman" <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'fs/proc/root.c')
0 files changed, 0 insertions, 0 deletions