]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: protect ring_buffer_expanded with trace_types_lock
authorSteven Rostedt <srostedt@redhat.com>
Thu, 12 Mar 2009 15:33:20 +0000 (11:33 -0400)
committerSteven Rostedt <srostedt@redhat.com>
Fri, 13 Mar 2009 01:14:58 +0000 (21:14 -0400)
commitae7581dc23fcc41d688a877649629d942c8ac7df
tree05e858e410fdb30865a11c78e2bb9bb0a12f55ba
parentd59b116f5615c010e46976e86a9b0b7d5018cf17
tracing: protect ring_buffer_expanded with trace_types_lock

Impact: prevent races with ring_buffer_expanded

This patch places the expanding of the tracing buffer under the
protection of the trace_types_lock mutex. It is highly unlikely
that there would be any contention, but better safe than sorry.

Reported-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
kernel/trace/trace.c