From: Steven Rostedt Date: Wed, 17 Jun 2009 01:22:48 +0000 (-0400) Subject: ring-buffer: do not grab locks in nmi X-Git-Tag: v2.6.31-rc1~95^2~1^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d707e8eb4de4b930573155ab4df4b3270ee25dd;p=pandora-kernel.git 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 --- Reading git-diff-tree failed