]> git.baikalelectronics.ru Git - kernel.git/commit
ptrace: don't take tasklist to get/set ->last_siginfo
authorOleg Nesterov <oleg@redhat.com>
Wed, 17 Jun 2009 23:27:36 +0000 (16:27 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 18 Jun 2009 20:03:52 +0000 (13:03 -0700)
commit36c7daaee1c91da20181efc34d5a8e248be0c0c5
tree7fe576d195533fb671c7a610cc35e9608e48c87e
parente2ed0a8842b7a427706b46578892ca72bb7c8af3
ptrace: don't take tasklist to get/set ->last_siginfo

Change ptrace_getsiginfo/ptrace_setsiginfo to use lock_task_sighand()
without tasklist_lock.  Perhaps it makes sense to make a single helper
with "bool rw" argument.

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