• Steven Rostedt's avatar
    tracing: protect trace_printk from recursion · 3189cdb3
    Steven Rostedt authored
    trace_printk can be called from any context, including NMIs.
    If this happens, then we must test for for recursion before
    grabbing any spinlocks.
    
    This patch prevents trace_printk from being called recursively.
    
    [ Impact: prevent hard lockup in lockdep event tracer ]
    
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Frederic Weisbecker <fweisbec@gmail.com>
    Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
    3189cdb3
trace.c 96.3 KB