ring-buffer: fix deadlock from reader_lock in read_start
authorSteven Rostedt <rostedt@goodmis.org>
Wed, 12 Nov 2008 05:01:26 +0000 (00:01 -0500)
committerIngo Molnar <mingo@elte.hu>
Wed, 12 Nov 2008 10:25:04 +0000 (11:25 +0100)
Impact: deadlock fix in ring_buffer_read_start

The ring_buffer_iter_reset was called from ring_buffer_read_start
where both grabbed the reader_lock.

This patch separates out the internals of ring_buffer_iter_reset
to its own function so that both APIs may grab the reader_lock.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

No differences found