ring-buffer: do not swap buffers during a commit
authorSteven Rostedt <srostedt@redhat.com>
Wed, 2 Sep 2009 14:56:15 +0000 (10:56 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 4 Sep 2009 15:22:47 +0000 (11:22 -0400)
commit98277991a99734f3a31d638afb47d4484ac73e43
tree6688cb3c43562d6bd7b67961478ac337297064e5
parent41b6a95d693319f804607b559893fbbd27498548
ring-buffer: do not swap buffers during a commit

If a commit is taking place on a CPU ring buffer, do not allow it to
be swapped. Return -EBUSY when this is detected instead.

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