ptrace: do not use task->ptrace directly in core kernel
authorOleg Nesterov <oleg@redhat.com>
Wed, 17 Jun 2009 23:27:30 +0000 (16:27 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 18 Jun 2009 20:03:51 +0000 (13:03 -0700)
commit5cb11446892833e50970fb2277a9f7563b0a8bd3
tree9cb858cb093c4b927601ef8a612d8dd791aeb1c8
parent1c216279539bd65c5a3d497e25d441dbddbcf1ec
ptrace: do not use task->ptrace directly in core kernel

No functional changes.

- Nobody except ptrace.c & co should use ptrace flags directly, we have
  task_ptrace() for that.

- No need to specially check PT_PTRACED, we must not have other PT_ bits
  set without PT_PTRACED. And no need to know this flag exists.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Cc: 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
kernel/signal.c