[PATCH 1/2] introduce the walk_process_tree() helper

2017-01-30 Thread Pavel Tikhomirov
From: Oleg Nesterov Add the new helper to walk the process tree, the next patch adds a user. Note that it visits the group leaders only, proc_visitor can do for_each_thread itself or we can trivially extend walk_process_tree() to do this. Signed-off-by: Oleg Nesterov Signed-off-by: Pavel Tikhom

[PATCH 1/2] introduce the walk_process_tree() helper

2017-01-30 Thread Pavel Tikhomirov
From: Oleg Nesterov Add the new helper to walk the process tree, the next patch adds a user. Note that it visits the group leaders only, proc_visitor can do for_each_thread itself or we can trivially extend walk_process_tree() to do this. Signed-off-by: Oleg Nesterov Signed-off-by: Pavel Tikhom

[PATCH 1/2] introduce the walk_process_tree() helper

2017-01-27 Thread Pavel Tikhomirov
From: Oleg Nesterov Add the new helper to walk the process tree, the next patch adds a user. Note that it visits the group leaders only, proc_visitor can do for_each_thread itself or we can trivially extend walk_process_tree() to do this. Signed-off-by: Oleg Nesterov Reviewed-by: Pavel Tikhomir