From: Steven Rostedt <rostedt@goodmis.org>
To: linux-kernel@vger.kernel.org
Cc: Ingo Molnar <mingo@elte.hu>,
Andrew Morton <akpm@linux-foundation.org>,
Frederic Weisbecker <fweisbec@gmail.com>
Subject: [PATCH 4/4] tracing: remove recursive test from ring_buffer_event_discard
Date: Mon, 20 Apr 2009 13:38:23 -0400 [thread overview]
Message-ID: <20090420174018.377934858@goodmis.org> (raw)
In-Reply-To: 20090420173819.957332585@goodmis.org
[-- Attachment #1: 0004-tracing-remove-recursive-test-from-ring_buffer_even.patch --]
[-- Type: text/plain, Size: 1163 bytes --]
From: Steven Rostedt <srostedt@redhat.com>
The ring_buffer_event_discard is not tied to ring_buffer_lock_reserve.
It can be called inside or outside the reserve/commit. Even if it
is called inside the reserve/commit the commit part must also be called.
Only ring_buffer_discard_commit can be used as a replacement for
ring_buffer_unlock_commit.
This patch removes the trace_recursive_unlock from ring_buffer_event_discard
since it would be the wrong place to do so.
[Impact: prevent breakage in trace recursive testing ]
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
---
kernel/trace/ring_buffer.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/kernel/trace/ring_buffer.c b/kernel/trace/ring_buffer.c
index aa40ae9..a699767 100644
--- a/kernel/trace/ring_buffer.c
+++ b/kernel/trace/ring_buffer.c
@@ -1667,7 +1667,6 @@ static inline void rb_event_discard(struct ring_buffer_event *event)
void ring_buffer_event_discard(struct ring_buffer_event *event)
{
rb_event_discard(event);
- trace_recursive_unlock();
}
EXPORT_SYMBOL_GPL(ring_buffer_event_discard);
--
1.6.2.1
--
next prev parent reply other threads:[~2009-04-20 17:41 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-20 17:38 [PATCH 0/4] [GIT PULL] tracing: recursion and compile fixes Steven Rostedt
2009-04-20 17:38 ` [PATCH 1/4] tracing/events: call the correct event trace selftest init function Steven Rostedt
2009-04-20 17:38 ` [PATCH 2/4] tracing: remove dangling semicolon Steven Rostedt
2009-04-20 17:38 ` [PATCH 3/4] tracing: fix recursive test level calculation Steven Rostedt
2009-04-20 19:30 ` Andrew Morton
2009-04-20 17:38 ` Steven Rostedt [this message]
2009-04-20 17:55 ` [PATCH 0/4] [GIT PULL] tracing: recursion and compile fixes Ingo Molnar
2009-04-20 19:28 ` Ingo Molnar
2009-04-20 19:45 ` Frederic Weisbecker
2009-04-20 19:53 ` Steven Rostedt
2009-04-20 20:17 ` Steven Rostedt
2009-04-20 20:33 ` Frederic Weisbecker
2009-04-20 20:44 ` Steven Rostedt
2009-04-20 21:01 ` Frederic Weisbecker
2009-04-20 21:14 ` Steven Rostedt
2009-04-20 21:25 ` Frederic Weisbecker
2009-04-20 19:29 ` Ingo Molnar
2009-04-20 19:43 ` Steven Rostedt
2009-04-20 19:48 ` Frederic Weisbecker
2009-04-20 19:55 ` Steven Rostedt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090420174018.377934858@goodmis.org \
--to=rostedt@goodmis.org \
--cc=akpm@linux-foundation.org \
--cc=fweisbec@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).