• Steven Rostedt's avatar
    ring-buffer: do not grab locks in nmi · 8d707e8e
    Steven Rostedt authored
    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: default avatarSteven Rostedt <rostedt@goodmis.org>
    8d707e8e
ring_buffer.c 78.7 KB