Warning about WARN_ON()
Warning about WARN_ON()
Posted Apr 21, 2024 16:21 UTC (Sun) by mb (subscriber, #50428)In reply to: Warning about WARN_ON() by marcH
Parent article: Warning about WARN_ON()
It makes a whole lot of sense to reboot when the system got into a state that was thought to be impossible.
Going on as if nothing happened is not an option for me.
I do understand why this behavior would not be ideal on desktop systems.
There I'd like to be notified and make the decision manually.
Suggesting pr_warn for "impossible" states is taking away this decision from administrators. Which is wrong. Kernel developers cannot decide what to do in these cases, because there's no single correct answer.