tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: I can't generate a kernel crash core.



On Thu, Jan 28, 2016 at 02:40:23PM +0000, Michael van Elst wrote:
> bouyer%antioche.eu.org@localhost (Manuel Bouyer) writes:
> 
> >> The driver gets detached in config_detach_all() during a
> >> regular reboot unless you use the RB_NOSYNC flag. Unfortunately
> >> this also prevents unmounting and syncing the filesystems.
> 
> >RB_DUMP should probably be handled as RB_NOSYNC then
> 
> Maybe. It's probably safer to either exclude the dump device
> or to re-attach it. Re-attaching seems to be cleaner but is
> probably difficult to do in a crash situation.

It's not only the dump device you need to reattach but all the
device chain up to mainbus (the detach code may have shut down a PCI
bridge for example). It doesn't look so easy.
If the dump device is open would this prevent it from being detached ?
If so maybe we could open it before detaching all devices ?

-- 
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
     NetBSD: 26 ans d'experience feront toujours la difference
--


Home | Main Index | Thread Index | Old Index