ring-buffer: convert to raw spinlocks
authorSteven Rostedt <srostedt@redhat.com>
Thu, 6 Nov 2008 05:09:43 +0000 (00:09 -0500)
committerIngo Molnar <mingo@elte.hu>
Thu, 6 Nov 2008 06:51:09 +0000 (07:51 +0100)
commit3e03fb7f1da2e691644526c0d6df42d778716349
treefd4071e75ef62d2fc146fdd7e85671b4f5182877
parent9036990d462e09366f7297a2d1da6582c3e6b1d3
ring-buffer: convert to raw spinlocks

Impact: no lockdep debugging of ring buffer

The problem with running lockdep on the ring buffer is that the
ring buffer is the core infrastructure of ftrace. What happens is
that the tracer will start tracing the lockdep code while lockdep
is testing the ring buffers locks.  This can cause lockdep to
fail due to testing cases that have not fully finished their
locking transition.

This patch converts the spin locks used by the ring buffer back
into raw spin locks which lockdep does not check.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/ring_buffer.c