diff options
author | Stephen Brennan <[email protected]> | 2022-02-02 09:18:20 -0800 |
---|---|---|
committer | Petr Mladek <[email protected]> | 2022-02-14 13:39:20 +0100 |
commit | 13fb0f74d7029df3b8137f11ef955e578a4a4a60 (patch) | |
tree | fe50763780a9ceda800bf31c5adc1d25ccafeaca /drivers/fpga/fpga-bridge.c | |
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 <[email protected]>
Signed-off-by: Stephen Brennan <[email protected]>
Reviewed-by: Sergey Senozhatsky <[email protected]>
Signed-off-by: Petr Mladek <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions