projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb91ee6
)
ftrace: prevent recursion
author
Lai Jiangshan
<laijs@cn.fujitsu.com>
Thu, 27 Nov 2008 02:21:46 +0000
(10:21 +0800)
committer
Ingo Molnar
<mingo@elte.hu>
Thu, 27 Nov 2008 09:11:53 +0000
(10:11 +0100)
Impact: prevent unnecessary stack recursion
if the resched flag was set before we entered, then don't reschedule.
Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/ring_buffer.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/trace/ring_buffer.c
b/kernel/trace/ring_buffer.c
index f780e9552f913e5b9674a218b148f27364e82723..668bbb5ef2bd154dc8084fe4480bfd251e484f41 100644
(file)
--- a/
kernel/trace/ring_buffer.c
+++ b/
kernel/trace/ring_buffer.c
@@
-1215,7
+1215,7
@@
ring_buffer_lock_reserve(struct ring_buffer *buffer,
out:
if (resched)
- preempt_enable_notrace();
+ preempt_enable_no
_resched_no
trace();
else
preempt_enable_notrace();
return NULL;