David Brownell <[EMAIL PROTECTED]> writes:

> On Sunday 06 March 2005 3:32 pm, Eric W. Biederman wrote:
> > 
> > Then there is the primary case, kexec case where we can trust
> > the kernel code.  Before a reboot we call the reboot_notifiers
> > and the device_shutdown() (which calls the appropriate device method).
> > The expectation is that the drivers will shutdown DMA and IRQs from
> > their hardware.
> 
> Most drivers don't have shutdown() methods, but they do
> have remove() methods that clean everything up.  Those
> methods tend to vanish from statically linked kernels.
> 
> Seems that if kexec were to use remove() methods that'd
> probably resolve a lot of those issues.   I confess I
> still don't see much point to a shutdown() method, unless
> maybe it's to avoid using reboot notifiers for that subset
> of remove() logic.

I tend to agree, but I lost that argument.  

The primary argument was that in cases where the system had
oopsed or otherwise was not 100% stable.  The remove()
method might not be stable.  But a shutdown() method could
be.

My observation has been that 9 times out of 10 nothing
really needs to be done.  But it is clear there are exceptions
to that rule.

Eric


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to