truckman f36627bd56 Don't bother calling the module event handlers from module_shutdown()
in the shutdown_final state if the RB_NOSYNC flag is set.

The specific motivation in this case is that a system panic in an
interrupt context results in a call to module_shutdown(), which
calls g_modevent(), which calls g_malloc(..., M_WAITOK), which
results in a second panic.   While g_modevent() could be fixed to
not call malloc() for MOD_SHUTDOWN events (which it doesn't handle
in any case), it is probably also a good idea to entirely skip the
execution of the module shutdown handlers after a panic.

This may be a MFC candidate for RELENG_5.
2004-08-20 21:47:48 +00:00
..
2004-06-17 17:16:53 +00:00
2004-07-10 21:36:01 +00:00
2004-07-28 06:42:41 +00:00
2004-08-14 08:33:49 +00:00
2004-06-21 22:34:57 +00:00
2004-08-19 19:51:51 +00:00
2004-07-10 21:43:23 +00:00
2004-08-19 20:16:09 +00:00
2004-07-13 19:36:59 +00:00
2004-07-28 06:42:41 +00:00
2004-06-17 17:16:53 +00:00