On 6 Apr 2004, James Bottomley wrote: > Supposing we did no hotplug at all and just relied on the fact that a > driver responds DID_NO_CONNECT to a missing device. > > We have a mounted fs on a CD on SCSI on USB which gets disconnected. No > event is generated because no hotplug. Now every read of the fs gets > EIO. The system can continue in this state forever if necessary. > However, eventually the user will get bored and unmount the fs > > If we just generated a single event saying "device gone" and did nothing > else, userland helpers could pull apart the entire stack (clean up > application, kill processes, unmount fs, remove scsi device etc).
In principle, yes. However... The kernel still has to process requests correctly while the stack is partially deconstructed. It also has to protect against userland helpers trying to pull things apart in the wrong order. I'm not trying to say that anything you wrote was wrong -- just that the situation is more complicated than you make it appear. Alan Stern ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
