Cyrill Gorcunov 818411616b fs, proc: introduce /proc/<pid>/task/<tid>/children entry
When we do checkpoint of a task we need to know the list of children the
task, has but there is no easy and fast way to generate reverse
parent->children chain from arbitrary <pid> (while a parent pid is
provided in "PPid" field of /proc/<pid>/status).

So instead of walking over all pids in the system (creating one big
process tree in memory, just to figure out which children a task has) --
we add explicit /proc/<pid>/task/<tid>/children entry, because the kernel
already has this kind of information but it is not yet exported.

This is a first level children, not the whole process tree.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Reviewed-by: Oleg Nesterov <oleg@redhat.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Cc: Pavel Emelyanov <xemul@parallels.com>
Cc: Serge Hallyn <serge.hallyn@canonical.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-05-31 17:49:32 -07:00
..
2011-09-27 18:08:04 +02:00
2012-01-03 22:54:57 -05:00
2010-10-05 09:08:21 -07:00
2009-08-19 10:40:13 -07:00
2012-05-10 11:45:31 +01:00
2011-11-04 12:01:48 -07:00
2007-07-31 15:39:38 -07:00
2012-05-29 16:22:23 -07:00
2011-09-27 18:08:04 +02:00
2010-05-10 11:56:30 +02:00
2011-03-31 11:26:23 -03:00
2008-07-26 12:00:05 -07:00
2011-03-31 11:26:23 -03:00
2012-01-03 22:55:03 -05:00
2012-05-29 16:22:23 -07:00
2011-05-24 11:17:13 -05:00
2008-11-12 17:17:17 -08:00