kprobes: Remove redundant text_mutex lock in optimize
authorMasami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Mon, 25 Oct 2010 13:18:01 +0000 (22:18 +0900)
committerIngo Molnar <mingo@elte.hu>
Mon, 25 Oct 2010 13:51:55 +0000 (15:51 +0200)
commit43948f50276eca010a22726860dfe9a4e8130136
tree7c84a90e5d0fb88ae5972d2bc7b5f1c70cf34650
parent2c78ffeca98fcd5a1dfd4a322438944506ed5e64
kprobes: Remove redundant text_mutex lock in optimize

Remove text_mutex locking in optimize_all_kprobes, because
this function doesn't modify text. It simply queues probes on
optimization list for kprobe_optimizer worker thread.

Signed-off-by: Masami Hiramatsu <mhiramat@redhat.com>
Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
Cc: Anil S Keshavamurthy <anil.s.keshavamurthy@intel.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Jason Baron <jbaron@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <20101025131801.19160.70939.stgit@ltc236.sdl.hitachi.co.jp>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/kprobes.c