ring-buffer: disable writers when resetting buffers
authorSteven Rostedt <srostedt@redhat.com>
Sat, 2 May 2009 00:26:54 +0000 (20:26 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 5 May 2009 21:22:02 +0000 (17:22 -0400)
commit41ede23eded40832c955d98d4b71bc244809abb3
tree044d968ac2d5784a80b46ba2ea04e639ac3e501b
parentafbab76a62b69ea6197e19727d4b8a8aef8deb25
ring-buffer: disable writers when resetting buffers

As a precaution, it is best to disable writing to the ring buffers
when reseting them.

[ Impact: prevent weird things if write happens during reset ]

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