[issue713] shutdown freeze and forced unmounts

Peter Avalos pavalos at theshell.com
Wed Jul 11 07:19:08 PDT 2007


On Wed, Jul 11, 2007 at 01:54:03PM +0900, YONETANI Tomokazu wrote:
> On Tue, Jul 10, 2007 at 07:18:26PM -0400, Peter Avalos wrote:
> > Indeed, only kernel threads and init, sh, and ps, but a reboot still freezes
> > after "Uptime: xxxx"
> 
> ... which means it's stuck at somewhere at the bottom of boot()
> in kern_shutdown.c:
>         /*
>          * Ok, now do things that assume all filesystem activity has
>          * been completed.
>          */
>         EVENTHANDLER_INVOKE(shutdown_post_sync, howto);
>         crit_enter();
>         if ((howto & (RB_HALT|RB_DUMP)) == RB_DUMP && !cold)
>                 dumpsys();
> 
>         /* Now that we're going to really halt the system... */
>         EVENTHANDLER_INVOKE(shutdown_final, howto);
> 
>         for(;;) ;       /* safety against shutdown_reset not working */
>         /* NOTREACHED */
> 
> At first I thought it's in cpu_reset(), but since you didn't see
> "Rebooting...", it's stuck in one of event handlers for shutdown_post_sync
> and not managed to shutdown_reset().  Please try attached patch to
> find which handler is the culprit.  Note that you may have to rebuild
> modules too, since this patches makes some incompatible changes to
> EVENTHANDLER_* APIs.
> 

In some of my own testing I've verified that it never gets to the
shutdown_final handler.  I'll try your patch out later today.  Thanks!

--Peter
Attachment:
pgp00013.pgp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pgp00013.pgp
Type: application/octet-stream
Size: 189 bytes
Desc: "Description: PGP signature"
URL: <http://lists.dragonflybsd.org/pipermail/bugs/attachments/20070711/2febd8fc/attachment-0022.obj>


More information about the Bugs mailing list