cvs commit: src/sys/kern kern_module.c

Don Lewis truckman at FreeBSD.org
Mon Aug 30 01:11:04 PDT 2004


truckman    2004-08-30 08:11:03 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_5)
    sys/kern             kern_module.c 
  Log:
  MFC kern_module.c 1.46
  
  >   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.
  
  Approved by:    re (kensmith)
  
  Revision  Changes    Path
  1.45.2.1  +3 -0      src/sys/kern/kern_module.c


More information about the cvs-src mailing list