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.... <HANG!> This shouldn't work on i386 either, but it seems to work solely due to luck.
This commit is contained in:
parent
150f6d2e0e
commit
7bdf343d0c
@ -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");
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user