ipmi: Add a note about the pretimeout callback
authorCorey Minyard <corey@minyard.net>
Wed, 19 Mar 2025 01:41:42 +0000 (20:41 -0500)
committerCorey Minyard <corey@minyard.net>
Wed, 7 May 2025 22:25:47 +0000 (17:25 -0500)
You can't do IPMI calls from the callback, it's called with locks
held.

Signed-off-by: Corey Minyard <cminyard@mvista.com>
include/linux/ipmi.h

index 2f74dd90c271f3ecbd94e892a10d4ddc9f9b0868..27cd5980bb27d90cec54e89745fe08058de83caf 100644 (file)
@@ -93,7 +93,8 @@ struct ipmi_user_hndl {
 
        /*
         * Called when the interface detects a watchdog pre-timeout.  If
-        * this is NULL, it will be ignored for the user.
+        * this is NULL, it will be ignored for the user.  Note that you
+        * can't do any IPMI calls from here, it's called with locks held.
         */
        void (*ipmi_watchdog_pretimeout)(void *handler_data);