[Skiboot] [PATCH 03/13] Warn when pollers are called with a lock held

Benjamin Herrenschmidt benh at kernel.crashing.org
Wed Feb 18 14:57:19 AEDT 2015


So we can start fixing those cases

Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
---
 core/opal.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/core/opal.c b/core/opal.c
index fc18db3..a49d022 100644
--- a/core/opal.c
+++ b/core/opal.c
@@ -284,6 +284,11 @@ void opal_run_pollers(void)
 {
 	struct opal_poll_entry *poll_ent;
 
+	if (this_cpu()->lock_depth) {
+		prlog(PR_ERR, "Running pollers with lock held !\n");
+		backtrace();
+	}
+
 	/* We run the timers first */
 	check_timers(false);
 
-- 
2.1.0



More information about the Skiboot mailing list