Masami Hiramatsu 1294156078 kprobes: add kprobe_insn_mutex and cleanup arch_remove_kprobe()
Add kprobe_insn_mutex for protecting kprobe_insn_pages hlist, and remove
kprobe_mutex from architecture dependent code.

This allows us to call arch_remove_kprobe() (and free_insn_slot) while
holding kprobe_mutex.

Signed-off-by: Masami Hiramatsu <mhiramat@redhat.com>
Acked-by: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
Cc: Anil S Keshavamurthy <anil.s.keshavamurthy@intel.com>
Cc: Russell King <rmk@arm.linux.org.uk>
Cc: "Luck, Tony" <tony.luck@intel.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-01-06 15:59:20 -08:00
..
2007-05-11 05:38:25 -04:00
2005-04-16 15:20:36 -07:00
2008-04-22 08:56:38 -07:00
2006-06-21 11:19:22 -07:00
2006-06-21 11:19:22 -07:00
2008-04-17 10:14:51 -07:00
2005-04-16 15:20:36 -07:00
2007-12-07 14:28:02 -08:00
2007-07-09 13:37:44 -07:00
2008-04-17 10:42:34 -04:00
2008-12-31 18:07:42 -05:00
2007-05-11 14:55:43 -07:00
2008-10-17 13:52:22 -07:00
2008-02-04 15:42:06 -08:00
2008-02-04 15:42:06 -08:00
2008-04-08 13:51:35 -07:00
2008-05-27 13:24:39 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-12-07 10:48:19 -08:00
2008-10-17 13:51:28 -07:00
2008-10-06 10:43:06 -07:00
2007-05-08 14:51:59 -07:00
2008-07-24 10:47:28 -07:00
2008-12-31 15:11:46 +01:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00