]> git.baikalelectronics.ru Git - kernel.git/commit
ring-buffer: do not grab locks in nmi
authorSteven Rostedt <srostedt@redhat.com>
Wed, 17 Jun 2009 01:22:48 +0000 (21:22 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Wed, 17 Jun 2009 18:16:27 +0000 (14:16 -0400)
commit930f9793c70cc67509eb835e6c4e0652a55b46df
tree2594b38c73fa1c944587f62a2f9ce70fe4f90ce4
parent3f122679dcaec5ea4cf0894f145983a8f57fcc01
ring-buffer: do not grab locks in nmi

If ftrace_dump_on_oops is set, and an NMI detects a lockup, then it
will need to read from the ring buffer. But the read side of the
ring buffer still takes locks. This patch adds a check on the read
side that if it is in an NMI, then it will disable the ring buffer
and not take any locks.

Reads can still happen on a disabled ring buffer.

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