ring-buffer: do not reset while in a commit
authorSteven Rostedt <srostedt@redhat.com>
Wed, 2 Sep 2009 13:59:48 +0000 (09:59 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 4 Sep 2009 15:15:08 +0000 (11:15 -0400)
commit41b6a95d693319f804607b559893fbbd27498548
treeeafa22ab694eda7723cec115592a861867432a66
parent8e254c1d183f0225ad21f9049641529e56cce4da
ring-buffer: do not reset while in a commit

The callers of reset must ensure that no commit can be taking place
at the time of the reset. If it does then we may corrupt the ring buffer.

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