]> bbs.cooldavid.org Git - net-next-2.6.git/commit
exit: add lock context annotation on find_new_reaper()
authorNamhyung Kim <namhyung@gmail.com>
Wed, 27 Oct 2010 22:34:10 +0000 (15:34 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 28 Oct 2010 01:03:13 +0000 (18:03 -0700)
commitd16e15f5b029fc7d03540ba0e5fb23b0abb0ebe0
tree382a6779f4eee476d86538372f0f6586d64ddb8b
parent895021552d6ffe8a4d076cb5c4b1e700c33e96e1
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>
kernel/exit.c