summaryrefslogtreecommitdiffstats
path: root/kernel/exit.c
diff options
context:
space:
mode:
authorNamhyung Kim2010-10-28 00:34:10 +0200
committerLinus Torvalds2010-10-28 03:03:13 +0200
commitd16e15f5b029fc7d03540ba0e5fb23b0abb0ebe0 (patch)
tree382a6779f4eee476d86538372f0f6586d64ddb8b /kernel/exit.c
parentcoredump: default CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS=y (diff)
downloadkernel-qcow2-linux-d16e15f5b029fc7d03540ba0e5fb23b0abb0ebe0.tar.gz
kernel-qcow2-linux-d16e15f5b029fc7d03540ba0e5fb23b0abb0ebe0.tar.xz
kernel-qcow2-linux-d16e15f5b029fc7d03540ba0e5fb23b0abb0ebe0.zip
exit: add lock context annotation on find_new_reaper()
find_new_reaper() releases and regrabs tasklist_lock but was missing proper annotations. Add it. This remove following sparse warning: warning: context imbalance in 'find_new_reaper' - unexpected unlock Signed-off-by: Namhyung Kim <namhyung@gmail.com> Acked-by: Roland McGrath <roland@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/exit.c')
-rw-r--r--kernel/exit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/exit.c b/kernel/exit.c
index 894179a32ec1..b194febf5799 100644
--- a/kernel/exit.c
+++ b/kernel/exit.c
@@ -703,6 +703,8 @@ static void exit_mm(struct task_struct * tsk)
* space.
*/
static struct task_struct *find_new_reaper(struct task_struct *father)
+ __releases(&tasklist_lock)
+ __acquires(&tasklist_lock)
{
struct pid_namespace *pid_ns = task_active_pid_ns(father);
struct task_struct *thread;