projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
module: use RCU to synchronize find_module
[linux-2.6-microblaze.git]
/
kernel
/
trace
/
trace_kprobe.c
diff --git
a/kernel/trace/trace_kprobe.c
b/kernel/trace/trace_kprobe.c
index
e6fba17
..
3137992
100644
(file)
--- a/
kernel/trace/trace_kprobe.c
+++ b/
kernel/trace/trace_kprobe.c
@@
-124,9
+124,9
@@
static nokprobe_inline bool trace_kprobe_module_exist(struct trace_kprobe *tk)
if (!p)
return true;
*p = '\0';
if (!p)
return true;
*p = '\0';
-
mutex_lock(&module_mutex
);
+
rcu_read_lock_sched(
);
ret = !!find_module(tk->symbol);
ret = !!find_module(tk->symbol);
-
mutex_unlock(&module_mutex
);
+
rcu_read_unlock_sched(
);
*p = ':';
return ret;
*p = ':';
return ret;