summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_module.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2003-01-07 22:24:13 +0000
committerpeter <peter@FreeBSD.org>2003-01-07 22:24:13 +0000
commitaacf88c6168a5237ea9d8f6dc8712c9b2fc066fa (patch)
tree3dc3f91c51a9ee36b3a918b3a04cb505eac24f2a /sys/kern/kern_module.c
parentd0b3cca28915f23ebee56e15aa2bf10ef213f667 (diff)
downloadFreeBSD-src-aacf88c6168a5237ea9d8f6dc8712c9b2fc066fa.zip
FreeBSD-src-aacf88c6168a5237ea9d8f6dc8712c9b2fc066fa.tar.gz
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
Diffstat (limited to 'sys/kern/kern_module.c')
-rw-r--r--sys/kern/kern_module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_module.c b/sys/kern/kern_module.c
index e39f56a..677d9f1 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);
}
OpenPOWER on IntegriCloud