kdb
[Top] [All Lists]

[PATCH 007/18] kdb-touch-nmi-watchdog

To: undisclosed-recipients:;
Subject: [PATCH 007/18] kdb-touch-nmi-watchdog
From: quilt@xxxxxxxxxxxxxxxx
Date: Thu Jul 10 16:25:03 EDT 2008
Resent-date: Thu, 10 Jul 2008 16:53:35 -0400
Resent-from: joe.korty@xxxxxxxx
Resent-message-id: <200807102053.m6AKrZPb031217@xxxxxxxxxxxxxx>
Resent-to: kdb@xxxxxxxxxxx
Sender: kdb-bounce@xxxxxxxxxxx
Touch NMI watchdog in various KDB busy-loops.

Various places where, for example, KDB writes
out data to the terminal may take so long that
the NMI watchdog timer expires, panicing the
kernel.  So touch the NMI watchdog timer on
each iteration through such loops.

Author: Jim Houston <jim.houston@xxxxxxxx>
Signed-off-by: Joe Korty <joe.korty@xxxxxxxx>

Index: 2.6.26-rc9/kdb/kdb_io.c
===================================================================
--- 2.6.26-rc9.orig/kdb/kdb_io.c        2008-07-10 12:14:15.000000000 -0400
+++ 2.6.26-rc9/kdb/kdb_io.c     2008-07-10 13:27:33.000000000 -0400
@@ -664,6 +664,7 @@
 
        while (c) {
                c->write(c, kdb_buffer, strlen(kdb_buffer));
+               touch_nmi_watchdog();
                c = c->next;
        }
        if (logging) {
@@ -720,6 +721,7 @@
 
                while (c) {
                        c->write(c, moreprompt, strlen(moreprompt));
+                       touch_nmi_watchdog();
                        c = c->next;
                }
 
---------------------------
Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe.
<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH 007/18] kdb-touch-nmi-watchdog, quilt <=