]> git.karo-electronics.de Git - linux-beck.git/commit
tracing: remove recursive test from ring_buffer_event_discard
authorSteven Rostedt <srostedt@redhat.com>
Mon, 20 Apr 2009 17:32:44 +0000 (13:32 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Mon, 20 Apr 2009 17:32:44 +0000 (13:32 -0400)
commite395898e98119085f666febbc7b631dd69bc637f
treeaa10e8a7c79c30c74db67bae6a9aa65201839065
parent17487bfeb6cfb05920e6a9d5a54f345f2917b4e7
tracing: remove recursive test from ring_buffer_event_discard

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