ring-buffer: add locks around rb_per_cpu_empty
authorSteven Rostedt <srostedt@redhat.com>
Wed, 17 Jun 2009 04:39:43 +0000 (00:39 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Wed, 17 Jun 2009 18:16:23 +0000 (14:16 -0400)
commitd47882078f05c2cb46b85f1e12a58ed9315b9d63
treead10f2172384d2112b6e8136b9981a0eb813539b
parent5f78abeebbf0a80975d719e11374535ca15396cb
ring-buffer: add locks around rb_per_cpu_empty

The checking of whether the buffer is empty or not needs to be serialized
among the readers. Add the reader spin lock around it.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/ring_buffer.c