diff options
author | Stephen Brennan <stephen.s.brennan@oracle.com> | 2022-02-02 09:18:20 -0800 |
---|---|---|
committer | Petr Mladek <pmladek@suse.com> | 2022-02-14 13:39:20 +0100 |
commit | 13fb0f74d7029df3b8137f11ef955e578a4a4a60 (patch) | |
tree | fe50763780a9ceda800bf31c5adc1d25ccafeaca /tools/perf/scripts/python/Perf-Trace-Util/lib | |
parent | d51507098ff91e863b6e0a8047507741d59b8175 (diff) |
printk: Avoid livelock with heavy printk during panic
During panic(), if another CPU is writing heavily the kernel log (e.g.
via /dev/kmsg), then the panic CPU may livelock writing out its messages
to the console. Note when too many messages are dropped during panic and
suppress further printk, except from the panic CPU. This could result in
some important messages being dropped. However, messages are already
being dropped, so this approach at least prevents a livelock.
Reviewed-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Stephen Brennan <stephen.s.brennan@oracle.com>
Reviewed-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20220202171821.179394-4-stephen.s.brennan@oracle.com
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib')
0 files changed, 0 insertions, 0 deletions