All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix IPMI watchdog so the device can be reopened on an unexpected close
@ 2005-04-29 20:04 Corey Minyard
  0 siblings, 0 replies; only message in thread
From: Corey Minyard @ 2005-04-29 20:04 UTC (permalink / raw)
  To: Andrew Morton; +Cc: lkml

[-- Attachment #1: Type: text/plain, Size: 1 bytes --]



[-- Attachment #2: ipmi-watchdog-allow-reopen.patch --]
[-- Type: text/x-patch, Size: 742 bytes --]

If there is an unexpected close, still allow the watchdog
interface to be re-opened on the IPMI watchdog.

Signed-off-by: Corey Minyard <minyard@acm.org>

Index: linux-2.6.10/drivers/char/ipmi/ipmi_watchdog.c
===================================================================
--- linux-2.6.10.orig/drivers/char/ipmi/ipmi_watchdog.c
+++ linux-2.6.10/drivers/char/ipmi/ipmi_watchdog.c
@@ -723,11 +723,11 @@
 		if (expect_close == 42) {
 			ipmi_watchdog_state = WDOG_TIMEOUT_NONE;
 			ipmi_set_timeout(IPMI_SET_TIMEOUT_NO_HB);
-			clear_bit(0, &ipmi_wdog_open);
 		} else {
 			printk(KERN_CRIT PFX "Unexpected close, not stopping watchdog!\n");
 			ipmi_heartbeat();
 		}
+		clear_bit(0, &ipmi_wdog_open);
 	}
 
 	ipmi_fasync (-1, filep, 0);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-04-29 20:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-29 20:04 [PATCH] Fix IPMI watchdog so the device can be reopened on an unexpected close Corey Minyard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.