From 7bdf343d0cce9b564736ba23efd473c1db8a65c8 Mon Sep 17 00:00:00 2001 From: peter Date: Mon, 6 Jan 2003 08:28:15 +0000 Subject: Move dashutdown from SHUTDOWN_PRI_DEFAULT to SHUTDOWN_PRI_FIRST. Otherwise, the scsi devices that it is trying to issue commands to may have gone away. This is what caused shutdown to hang on ia64 systems with mpt scsi controllers. The bus system has torn down the device tree and reset the mpt controller etc, and suddenly along comes dashutdown and wants to issue a few more scsi commands.... This shouldn't work on i386 either, but it seems to work solely due to luck. --- sys/cam/scsi/scsi_da.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/cam') diff --git a/sys/cam/scsi/scsi_da.c b/sys/cam/scsi/scsi_da.c index e143609..a526701 100644 --- a/sys/cam/scsi/scsi_da.c +++ b/sys/cam/scsi/scsi_da.c @@ -927,7 +927,7 @@ dainit(void) /* Register our shutdown event handler */ if ((EVENTHANDLER_REGISTER(shutdown_post_sync, dashutdown, - NULL, SHUTDOWN_PRI_DEFAULT)) == NULL) + NULL, SHUTDOWN_PRI_FIRST)) == NULL) printf("dainit: shutdown event registration failed!\n"); } } -- cgit v1.1