diff options
author | Sukadev Bhattiprolu <sukadev@us.ibm.com> | 2007-10-19 02:39:50 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-19 14:53:37 -0400 |
commit | 88f21d818255bc61c002478d21caf52f8a9b8def (patch) | |
tree | de16e38862622b3d295f7850cdb006922307fb8d | |
parent | 2894d650cd9715d00ca196c711265819ef6ebd2d (diff) |
pid namespaces: rename child_reaper() function
Rename the child_reaper() function to task_child_reaper() to be similar to
other task_* functions and to distinguish the function from 'struct
pid_namspace.child_reaper'.
Signed-off-by: Sukadev Bhattiprolu <sukadev@us.ibm.com>
Cc: Pavel Emelianov <xemul@openvz.org>
Cc: Eric W. Biederman <ebiederm@xmission.com>
Cc: Cedric Le Goater <clg@fr.ibm.com>
Cc: Dave Hansen <haveblue@us.ibm.com>
Cc: Serge Hallyn <serue@us.ibm.com>
Cc: Herbert Poetzel <herbert@13thfloor.at>
Cc: Kirill Korotaev <dev@sw.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | fs/exec.c | 2 | ||||
-rw-r--r-- | include/linux/pid_namespace.h | 2 | ||||
-rw-r--r-- | kernel/exit.c | 4 | ||||
-rw-r--r-- | kernel/signal.c | 2 |
4 files changed, 5 insertions, 5 deletions
@@ -775,7 +775,7 @@ static int de_thread(struct task_struct *tsk) | |||
775 | * Reparenting needs write_lock on tasklist_lock, | 775 | * Reparenting needs write_lock on tasklist_lock, |
776 | * so it is safe to do it under read_lock. | 776 | * so it is safe to do it under read_lock. |
777 | */ | 777 | */ |
778 | if (unlikely(tsk->group_leader == child_reaper(tsk))) | 778 | if (unlikely(tsk->group_leader == task_child_reaper(tsk))) |
779 | task_active_pid_ns(tsk)->child_reaper = tsk; | 779 | task_active_pid_ns(tsk)->child_reaper = tsk; |
780 | 780 | ||
781 | zap_other_threads(tsk); | 781 | zap_other_threads(tsk); |
diff --git a/include/linux/pid_namespace.h b/include/linux/pid_namespace.h index d10cb5f75c06..aea13ec31aba 100644 --- a/include/linux/pid_namespace.h +++ b/include/linux/pid_namespace.h | |||
@@ -44,7 +44,7 @@ static inline struct pid_namespace *task_active_pid_ns(struct task_struct *tsk) | |||
44 | return tsk->nsproxy->pid_ns; | 44 | return tsk->nsproxy->pid_ns; |
45 | } | 45 | } |
46 | 46 | ||
47 | static inline struct task_struct *child_reaper(struct task_struct *tsk) | 47 | static inline struct task_struct *task_child_reaper(struct task_struct *tsk) |
48 | { | 48 | { |
49 | return init_pid_ns.child_reaper; | 49 | return init_pid_ns.child_reaper; |
50 | } | 50 | } |
diff --git a/kernel/exit.c b/kernel/exit.c index 6e6ec300330f..d1eddc753fe3 100644 --- a/kernel/exit.c +++ b/kernel/exit.c | |||
@@ -674,7 +674,7 @@ forget_original_parent(struct task_struct *father, struct list_head *to_release) | |||
674 | do { | 674 | do { |
675 | reaper = next_thread(reaper); | 675 | reaper = next_thread(reaper); |
676 | if (reaper == father) { | 676 | if (reaper == father) { |
677 | reaper = child_reaper(father); | 677 | reaper = task_child_reaper(father); |
678 | break; | 678 | break; |
679 | } | 679 | } |
680 | } while (reaper->exit_state); | 680 | } while (reaper->exit_state); |
@@ -874,7 +874,7 @@ static inline void check_stack_usage(void) {} | |||
874 | 874 | ||
875 | static inline void exit_child_reaper(struct task_struct *tsk) | 875 | static inline void exit_child_reaper(struct task_struct *tsk) |
876 | { | 876 | { |
877 | if (likely(tsk->group_leader != child_reaper(tsk))) | 877 | if (likely(tsk->group_leader != task_child_reaper(tsk))) |
878 | return; | 878 | return; |
879 | 879 | ||
880 | panic("Attempted to kill init!"); | 880 | panic("Attempted to kill init!"); |
diff --git a/kernel/signal.c b/kernel/signal.c index 15c6940ab046..0a6d3726cb80 100644 --- a/kernel/signal.c +++ b/kernel/signal.c | |||
@@ -1839,7 +1839,7 @@ relock: | |||
1839 | * within that pid space. It can of course get signals from | 1839 | * within that pid space. It can of course get signals from |
1840 | * its parent pid space. | 1840 | * its parent pid space. |
1841 | */ | 1841 | */ |
1842 | if (current == child_reaper(current)) | 1842 | if (current == task_child_reaper(current)) |
1843 | continue; | 1843 | continue; |
1844 | 1844 | ||
1845 | if (sig_kernel_stop(signr)) { | 1845 | if (sig_kernel_stop(signr)) { |