Author: mav
Date: Sat Apr 27 06:09:13 2013
New Revision: 249972
URL: http://svnweb.freebsd.org/changeset/base/249972

Log:
  MFC r249849:
  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:
  stable/9/sys/dev/hptmv/entry.c
  stable/9/sys/dev/mpt/mpt_pci.c
Directory Properties:
  stable/9/sys/   (props changed)
  stable/9/sys/dev/   (props changed)

Modified: stable/9/sys/dev/hptmv/entry.c
==============================================================================
--- stable/9/sys/dev/hptmv/entry.c      Sat Apr 27 05:44:39 2013        
(r249971)
+++ stable/9/sys/dev/hptmv/entry.c      Sat Apr 27 06:09:13 2013        
(r249972)
@@ -2605,9 +2605,11 @@ launch_worker_thread(void)
         * 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: stable/9/sys/dev/mpt/mpt_pci.c
==============================================================================
--- stable/9/sys/dev/mpt/mpt_pci.c      Sat Apr 27 05:44:39 2013        
(r249971)
+++ stable/9/sys/dev/mpt/mpt_pci.c      Sat Apr 27 06:09:13 2013        
(r249972)
@@ -568,7 +568,7 @@ mpt_pci_attach(device_t dev)
        }
 
        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");
_______________________________________________
svn-src-stable-9@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-stable-9
To unsubscribe, send any mail to "svn-src-stable-9-unsubscr...@freebsd.org"

Reply via email to