aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/hptmv
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2013-04-24 19:00:45 +0000
committerAlexander Motin <mav@FreeBSD.org>2013-04-24 19:00:45 +0000
commitc33c978915c9d302134841492e83c3fb449d1625 (patch)
tree8a7f582a33904f7291a852bfa9f089fb9f846881 /sys/dev/hptmv
parent0be23a54cf8e0e33ccc32b6be6e827269a39210a (diff)
downloadsrc-c33c978915c9d302134841492e83c3fb449d1625.tar.gz
src-c33c978915c9d302134841492e83c3fb449d1625.zip
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. MFC after: 3 days
Notes
Notes: svn path=/head/; revision=249849
Diffstat (limited to 'sys/dev/hptmv')
-rw-r--r--sys/dev/hptmv/entry.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/hptmv/entry.c b/sys/dev/hptmv/entry.c
index 248d6558579e..cdc3e181f887 100644
--- a/sys/dev/hptmv/entry.c
+++ b/sys/dev/hptmv/entry.c
@@ -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
}
/*