[PATCH 10/23] ipmi: Add a note about the pretimeout callback
From: Corey Minyard
Date: Thu Apr 24 2025 - 12:52:33 EST
You can't do IPMI calls from the callback, it's called with locks
held.
Signed-off-by: Corey Minyard <cminyard@xxxxxxxxxx>
---
include/linux/ipmi.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/include/linux/ipmi.h b/include/linux/ipmi.h
index 2f74dd90c271..27cd5980bb27 100644
--- a/include/linux/ipmi.h
+++ b/include/linux/ipmi.h
@@ -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);
--
2.43.0