Use write_trylock_irqsave in ptrace_attach
authorSripathi Kodi <sripathik@in.ibm.com>
Mon, 16 Jul 2007 06:39:26 +0000 (23:39 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 16 Jul 2007 16:05:40 +0000 (09:05 -0700)
commit6175ecfed3c81d388735c75f7a0ad08dc4de02d3
tree83ac354507db40109bd114c233de2e7c36c92231
parente1f4a88c5a15a86124a95ea712213bb7dab2ad99
Use write_trylock_irqsave in ptrace_attach

This patch makes ptrace_attach use write_trylock_irqsave().

[akpm@linux-foundation.org: remove unneeded initialisation]
Signed-off-by: Sripathi Kodi <sripathik@in.ibm.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/ptrace.c