* [PATCH 0/1] ring-buffer fix for 2.6.28
@ 2008-11-27 2:52 Steven Rostedt
2008-11-27 2:52 ` [PATCH 1/1] ring-buffer: prevent recursion Steven Rostedt
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Steven Rostedt @ 2008-11-27 2:52 UTC (permalink / raw)
To: linux-kernel; +Cc: Ingo Molnar, Andrew Morton, Linus Torvalds, Lai Jiangshan
The following patch needs to go into 2.6.28. It protects against
a recursion race that can happen when the scheduler is traced.
The following patches are in:
git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-trace.git
branch: devel
Lai Jiangshan (1):
ring-buffer: prevent recursion
----
kernel/trace/ring_buffer.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/1] ring-buffer: prevent recursion
2008-11-27 2:52 [PATCH 0/1] ring-buffer fix for 2.6.28 Steven Rostedt
@ 2008-11-27 2:52 ` Steven Rostedt
2008-11-27 3:11 ` [PATCH 0/1] ring-buffer fix for 2.6.28 Randy Dunlap
2008-11-27 9:14 ` Ingo Molnar
2 siblings, 0 replies; 5+ messages in thread
From: Steven Rostedt @ 2008-11-27 2:52 UTC (permalink / raw)
To: linux-kernel; +Cc: Ingo Molnar, Andrew Morton, Linus Torvalds, Lai Jiangshan
[-- Attachment #1: 0001-ring-buffer-prevent-recursion.patch --]
[-- Type: text/plain, Size: 772 bytes --]
From: Lai Jiangshan <laijs@cn.fujitsu.com>
Impact: fix to recursion in function tracer with schedule
If the resched flag was set before we entered, then don't reschedule.
Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
---
kernel/trace/ring_buffer.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/kernel/trace/ring_buffer.c b/kernel/trace/ring_buffer.c
index f780e95..668bbb5 100644
--- 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_notrace();
else
preempt_enable_notrace();
return NULL;
--
1.5.6.5
--
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 0/1] ring-buffer fix for 2.6.28
2008-11-27 2:52 [PATCH 0/1] ring-buffer fix for 2.6.28 Steven Rostedt
2008-11-27 2:52 ` [PATCH 1/1] ring-buffer: prevent recursion Steven Rostedt
@ 2008-11-27 3:11 ` Randy Dunlap
2008-11-27 13:58 ` Steven Rostedt
2008-11-27 9:14 ` Ingo Molnar
2 siblings, 1 reply; 5+ messages in thread
From: Randy Dunlap @ 2008-11-27 3:11 UTC (permalink / raw)
To: Steven Rostedt
Cc: linux-kernel, Ingo Molnar, Andrew Morton, Linus Torvalds,
Lai Jiangshan
Steven Rostedt wrote:
> The following patch needs to go into 2.6.28. It protects against
> a recursion race that can happen when the scheduler is traced.
>
> The following patches are in:
>
> git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-trace.git
>
> branch: devel
>
>
> Lai Jiangshan (1):
> ring-buffer: prevent recursion
>
> ----
> kernel/trace/ring_buffer.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
Is there something about git that causes (or forces) the use of
patch 0/1 followed by patch 1/1? I find it terribly unwanted.
thanks,
--
~Randy
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 0/1] ring-buffer fix for 2.6.28
2008-11-27 2:52 [PATCH 0/1] ring-buffer fix for 2.6.28 Steven Rostedt
2008-11-27 2:52 ` [PATCH 1/1] ring-buffer: prevent recursion Steven Rostedt
2008-11-27 3:11 ` [PATCH 0/1] ring-buffer fix for 2.6.28 Randy Dunlap
@ 2008-11-27 9:14 ` Ingo Molnar
2 siblings, 0 replies; 5+ messages in thread
From: Ingo Molnar @ 2008-11-27 9:14 UTC (permalink / raw)
To: Steven Rostedt; +Cc: linux-kernel, Andrew Morton, Linus Torvalds, Lai Jiangshan
* Steven Rostedt <rostedt@goodmis.org> wrote:
> The following patch needs to go into 2.6.28. It protects against a
> recursion race that can happen when the scheduler is traced.
thanks, i've applied Lai's patch from email to tip/tracing/urgent.
Ingo
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 0/1] ring-buffer fix for 2.6.28
2008-11-27 3:11 ` [PATCH 0/1] ring-buffer fix for 2.6.28 Randy Dunlap
@ 2008-11-27 13:58 ` Steven Rostedt
0 siblings, 0 replies; 5+ messages in thread
From: Steven Rostedt @ 2008-11-27 13:58 UTC (permalink / raw)
To: Randy Dunlap
Cc: linux-kernel, Ingo Molnar, Andrew Morton, Linus Torvalds,
Lai Jiangshan
On Wed, 26 Nov 2008, Randy Dunlap wrote:
> Steven Rostedt wrote:
> > The following patch needs to go into 2.6.28. It protects against
> > a recursion race that can happen when the scheduler is traced.
> >
> > The following patches are in:
> >
> > git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-trace.git
> >
> > branch: devel
> >
> >
> > Lai Jiangshan (1):
> > ring-buffer: prevent recursion
> >
> > ----
> > kernel/trace/ring_buffer.c | 2 +-
> > 1 files changed, 1 insertions(+), 1 deletions(-)
>
> Is there something about git that causes (or forces) the use of
> patch 0/1 followed by patch 1/1? I find it terribly unwanted.
>
It's my scripts that post. I should probably modify it so that if there is
only one patch, that I append it to the prolog instead, and mail it out
the old way. My scripts pull the patches out of my git tree and use quilt
top post. I know git has a way to do that too, but I have not set that up.
-- Steve
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-11-27 13:58 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-27 2:52 [PATCH 0/1] ring-buffer fix for 2.6.28 Steven Rostedt
2008-11-27 2:52 ` [PATCH 1/1] ring-buffer: prevent recursion Steven Rostedt
2008-11-27 3:11 ` [PATCH 0/1] ring-buffer fix for 2.6.28 Randy Dunlap
2008-11-27 13:58 ` Steven Rostedt
2008-11-27 9:14 ` Ingo Molnar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox