kprobes: No need to unlock kprobe_insn_mutex
authorMasami Hiramatsu <mhiramat@redhat.com>
Tue, 30 Jun 2009 21:08:09 +0000 (17:08 -0400)
committerIngo Molnar <mingo@elte.hu>
Wed, 1 Jul 2009 08:43:07 +0000 (10:43 +0200)
commit4a2bb6fcc80e6330ca2f2393e98605052cc7780b
tree3e1d2314d7002f13bb61ff78266cce3922673c93
parent238a24f626628cb16a3015f332d649f08246ca89
kprobes: No need to unlock kprobe_insn_mutex

Remove needless kprobe_insn_mutex unlocking during safety check
in garbage collection, because if someone releases a dirty slot
during safety check (which ensures other cpus doesn't execute
all dirty slots), the safety check must be fail. So, we need to
hold the mutex while checking safety.

Signed-off-by: Masami Hiramatsu <mhiramat@redhat.com>
Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
Cc: Jim Keniston <jkenisto@us.ibm.com>
Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
LKML-Reference: <20090630210809.17851.28781.stgit@localhost.localdomain>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/kprobes.c