Am Montag, 20. Januar 2003 22:24 schrieb David Brownell: > Oliver Neukum wrote: > > That model cannot be applied to SCSI as it is much more diverse > > in the number of bus types it supports. > > USB can do it, because it knows about hubs. SCSI cannot, > > as there are no hubs in SCSI. > > Hubs are irrelevant here, the key functionality is noticing > hardware addition/disconnect. Parts of it can be done in bus > adapter code, parts of it can't. SCSI probes LUNS in much > the same way khubd probes hub ports, and as I recall most of > that logic isn't any more specific to the adapter than virtual > root hub code is for USB.
I should be more specific. The SCSI is different for several reasons: - we are talking about bus as well as device detection - there's no common way to probe for devices (the probing of LUNs works only on conventional busses) - many SCSI devices are not really SCSI devices. They just use the command set SCSI hotplug detection doesn't work for the same reason that USB can handle only detection of devices by itself. Busses on the other hand are not handled by USB itself. > >>Those disconnect() callbacks have a few key responsibilities, very > >>much including shutting down the entire higher level I/O queue to > >>that device. I think you're saying that SCSI drivers don't have > >>such a responsibility (unlike USB or PCI) ... if so, that would > >>seem to be worth changing. > > > > If the scsi layer cannot on its own detect that a device or a bus is > > gone, there'll be no sense in having a callback. It's just a > > complication. > > Erm ... which of the three SCSI layers are you talking about? I was > talking about the highest level, which is precisely the layer I think > has been identified as already needing to know when to shut down the > I/O queues (sd_mod and friends). In SCSI view device and bus disconnection is recognised by the lowest level. As it knows nothing about the high layers, it notifies the midlayer which in turn notifies the high level drivers. What should a callback do? The low level driver cannot do more than notify. I don't see what the midlayer could do with a callback, but I defer judgement here to the SCSI people, but definitely the LLDD has no use for a callback. Regards Oliver ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel