From: Namhyung Kim Date: Wed, 27 Oct 2010 22:34:10 +0000 (-0700) Subject: exit: add lock context annotation on find_new_reaper() X-Git-Tag: upstream/snapshot3+hdmi~12627^2~58 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d16e15f5b029fc7d03540ba0e5fb23b0abb0ebe0;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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 Acked-by: Roland McGrath Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/exit.c b/kernel/exit.c index 894179a..b194feb 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;