[PATCH RESEND 2/2] ptrace: annotate lock context change on exit_ptrace()

From: Namhyung Kim
Date: Sat Sep 25 2010 - 23:54:49 EST


exit_ptrace() releases and regrabs tasklist_lock but was missing
proper annotation. Add it.

Signed-off-by: Namhyung Kim <namhyung@xxxxxxxxx>
Acked-by: Roland McGrath <roland@xxxxxxxxxx>
---
kernel/ptrace.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/kernel/ptrace.c b/kernel/ptrace.c
index f34d798..4afd9b8 100644
--- a/kernel/ptrace.c
+++ b/kernel/ptrace.c
@@ -329,6 +329,8 @@ int ptrace_detach(struct task_struct *child, unsigned int data)
* and reacquire the lock.
*/
void exit_ptrace(struct task_struct *tracer)
+ __releases(&tasklist_lock)
+ __acquires(&tasklist_lock)
{
struct task_struct *p, *n;
LIST_HEAD(ptrace_dead);
--
1.7.2.2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/