lkml.org 
[lkml]   [2005]   [Apr]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] Fix IPMI watchdog so the device can be reopened on an unexpected close

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);
\
 
 \ /
  Last update: 2005-04-29 22:19    [W:0.023 / U:0.364 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site