From aacf88c6168a5237ea9d8f6dc8712c9b2fc066fa Mon Sep 17 00:00:00 2001 From: peter Date: Tue, 7 Jan 2003 22:24:13 +0000 Subject: [PATCH] Move the MOD_SHUTDOWN event from shutdown_post_sync to shutdown_final, so that entities that want to use the post_sync hook to write stuff to devices and other tidy-up can do so before the device tree is shot down. eg: da doing a SYNC_CACHE etc. This should get crashdumps working on mpt devices again, and stops the ia64 boxes locking up on regular shutdown when da tries to issue the scsi commands to mpt. Obtained from: njl, gibbs --- sys/kern/kern_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/kern_module.c b/sys/kern/kern_module.c index e39f56aec03e..677d9f15fe4c 100644 --- a/sys/kern/kern_module.c +++ b/sys/kern/kern_module.c @@ -74,7 +74,7 @@ module_init(void *arg) sx_init(&modules_sx, "module subsystem sx lock"); TAILQ_INIT(&modules); - EVENTHANDLER_REGISTER(shutdown_post_sync, module_shutdown, NULL, + EVENTHANDLER_REGISTER(shutdown_final, module_shutdown, NULL, SHUTDOWN_PRI_DEFAULT); }