summaryrefslogtreecommitdiffstats
path: root/sys/scsi
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>1997-08-09 01:44:25 +0000
committerjulian <julian@FreeBSD.org>1997-08-09 01:44:25 +0000
commitc92a006d04dac8d82f56ec61c5d55f89936b41db (patch)
treeabe7af26d48944ae9893cd242f69574ec6d008e4 /sys/scsi
parent305573cb2990c5d329d149cef5a3b5533b1e8fd9 (diff)
downloadFreeBSD-src-c92a006d04dac8d82f56ec61c5d55f89936b41db.zip
FreeBSD-src-c92a006d04dac8d82f56ec61c5d55f89936b41db.tar.gz
Teach both disk drivers how to cope with a hardware watchdog
while dumping core.. I'm tired of getting 1/2 of a core-dump conditional on -DHW_WDOG for now this will migrate to 2.2 as that's where I need it.
Diffstat (limited to 'sys/scsi')
-rw-r--r--sys/scsi/sd.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/sys/scsi/sd.c b/sys/scsi/sd.c
index 8386c42..4578cc7 100644
--- a/sys/scsi/sd.c
+++ b/sys/scsi/sd.c
@@ -15,7 +15,7 @@
*
* Ported to run under 386BSD by Julian Elischer (julian@dialix.oz.au) Sept 1992
*
- * $Id: sd.c,v 1.105 1997/05/01 19:15:38 sos Exp $
+ * $Id: sd.c,v 1.106 1997/06/25 19:07:43 tegge Exp $
*/
#include "opt_bounce.h"
@@ -1047,8 +1047,17 @@ sddump(dev_t dev)
return (ENXIO); /* we said not to sleep! */
}
- if ((unsigned) addr % (1024 * 1024) == 0)
+ /*
+ * If we are dumping core, it may take a while.
+ * So reassure the user and hold off any watchdogs.
+ */
+ if ((unsigned)addr % (1024 * 1024) == 0) {
+#ifdef HW_WDOG
+ if (wdog_tickler)
+ (*wdog_tickler)();
+#endif /* HW_WDOG */
printf("%ld ", num / 2048);
+ }
/* update block count */
num -= blkcnt;
blknum += blkcnt;
OpenPOWER on IntegriCloud