[Midnightbsd-cvs] src [9304] trunk/sys/dev: Move hptmv and mpt drivers shutdown a bit later to the SHUTDOWN_PRI_LAST
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Thu Mar 2 18:30:06 EST 2017
Revision: 9304
http://svnweb.midnightbsd.org/src/?rev=9304
Author: laffer1
Date: 2017-03-02 18:30:06 -0500 (Thu, 02 Mar 2017)
Log Message:
-----------
Move hptmv and mpt drivers shutdown a bit later to the SHUTDOWN_PRI_LAST
stage of shutdown_post_sync. That should allow CAM to do final cache flush
at the SHUTDOWN_PRI_DEFAULT without using polling magic.
Modified Paths:
--------------
trunk/sys/dev/hptmv/entry.c
trunk/sys/dev/mpt/mpt_pci.c
Modified: trunk/sys/dev/hptmv/entry.c
===================================================================
--- trunk/sys/dev/hptmv/entry.c 2017-03-02 23:28:54 UTC (rev 9303)
+++ trunk/sys/dev/hptmv/entry.c 2017-03-02 23:30:06 UTC (rev 9304)
@@ -2605,9 +2605,11 @@
* hpt_worker_thread needs to be suspended after shutdown sync, when fs sync finished.
*/
#if (__FreeBSD_version < 500043)
- EVENTHANDLER_REGISTER(shutdown_post_sync, shutdown_kproc, hptdaemonproc, SHUTDOWN_PRI_FIRST);
+ EVENTHANDLER_REGISTER(shutdown_post_sync, shutdown_kproc, hptdaemonproc,
+ SHUTDOWN_PRI_LAST);
#else
- EVENTHANDLER_REGISTER(shutdown_post_sync, kproc_shutdown, hptdaemonproc, SHUTDOWN_PRI_FIRST);
+ EVENTHANDLER_REGISTER(shutdown_post_sync, kproc_shutdown, hptdaemonproc,
+ SHUTDOWN_PRI_LAST);
#endif
}
/*
Modified: trunk/sys/dev/mpt/mpt_pci.c
===================================================================
--- trunk/sys/dev/mpt/mpt_pci.c 2017-03-02 23:28:54 UTC (rev 9303)
+++ trunk/sys/dev/mpt/mpt_pci.c 2017-03-02 23:30:06 UTC (rev 9304)
@@ -568,7 +568,7 @@
}
mpt->eh = EVENTHANDLER_REGISTER(shutdown_post_sync, mpt_pci_shutdown,
- dev, SHUTDOWN_PRI_DEFAULT);
+ dev, SHUTDOWN_PRI_LAST);
if (mpt->eh == NULL) {
mpt_prt(mpt, "shutdown event registration failed\n");
More information about the Midnightbsd-cvs
mailing list