Re: [linux-usb-devel] Re: [PATCH] USB changes for 2.5.58

Alan Stern
2003-01-17T15:06:08Z

On Fri, 17 Jan 2003, Oliver Neukum wrote:

> Am Freitag, 17. Januar 2003 09:50 schrieb Mike Anderson:
> >
> > If the device disappears the host needs to return all IOs in flight with
> > an error, and we need to ensure new ones do not start ( setting the
> > device offline and maybe host_self_blocked). This is a start on getting
> > the scsi_remove_host to succed.
>
> Could you provide some details?

Usb-storage does most of this already. When the device is unplugged,
all current transactions return an error and any new ones return a
device-not-ready code. But that doesn't solve the problem of removing the
device's representation within SCSI and sysfs.

Alan Stern