diff options
author | Corey Minyard <corey@minyard.net> | 2025-03-19 05:46:05 +0300 |
---|---|---|
committer | Corey Minyard <corey@minyard.net> | 2025-05-08 01:25:48 +0300 |
commit | 83d19f03f3e5e1421d7cda78d0bec80e1769e8aa (patch) | |
tree | b7033609ae75096fc80e7cf76498474b7d638ef5 | |
parent | 5017b1b02640234b08ad38a046043f143670dea2 (diff) | |
download | linux-83d19f03f3e5e1421d7cda78d0bec80e1769e8aa.tar.xz |
ipmi:msghandler: Remove some user level processing in panic mode
When run to completion is set, don't call things that will claim
mutexes or call user callbacks.
Signed-off-by: Corey Minyard <cminyard@mvista.com>
-rw-r--r-- | drivers/char/ipmi/ipmi_msghandler.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/char/ipmi/ipmi_msghandler.c b/drivers/char/ipmi/ipmi_msghandler.c index c7cc885e12fa..f40f281b46b3 100644 --- a/drivers/char/ipmi/ipmi_msghandler.c +++ b/drivers/char/ipmi/ipmi_msghandler.c @@ -4808,6 +4808,10 @@ static void smi_work(struct work_struct *t) handle_new_recv_msgs(intf); + /* Nothing below applies during panic time. */ + if (run_to_completion) + return; + /* * If the pretimout count is non-zero, decrement one from it and * deliver pretimeouts to all the users. |