Re: [PATCH printk v4 27/27] lockdep: Mark emergency sections in lockdep splats
From: Peter Zijlstra
Date: Tue Apr 16 2024 - 07:18:08 EST
On Wed, Apr 03, 2024 at 12:17:29AM +0206, John Ogness wrote:
> Mark emergency sections wherever multiple lines of
> lock debugging output are generated. In an emergency
> section the CPU will not perform console output for the
> printk() calls. Instead, a flushing of the console
> output is triggered when exiting the emergency section.
> This allows the full message block to be stored as
> quickly as possible in the ringbuffer.
I am confused, when in emergency I want the thing to dump everything to
the atomic thing asap.
Storing it all up runs the risk of never getting to the 'complete' point
because we're dead.