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

Matthew Dharm
2003-03-01T01:41:49Z

[-- Attachment #1: Type: text/plain, Size: 2282 bytes --]

After conversing with Mike some more, there is a deadlock problem. I need
to hold the host_lock to walk the device list, but I can't hold the
host_lock when I call scsi_set_device_offline().

Mike's looking into this. Until he finds a good answer, no patch for
usb-storage.

Matt

On Thu, Feb 27, 2003 at 11:32:39AM -0800, Matthew Dharm wrote:
> This was discussed, but I didn't recall a firm decision.
>
> I'll keep my eyes open for the patch that uses release().
>
> Matt
>
> On Wed, Feb 26, 2003 at 10:37:37PM -0800, Mike Anderson wrote:
> > Matthew Dharm [mdharm-scsi@one-eyed-alien.net] wrote:
> > > Right... but I removed the release() function because that was marked (in
> > > the documentation) as only for the old-style drivers. So I'll need to
> > > re-introduce it -- but it looks like all it has to do is free some memory.
> > > Does that sound about right?
> >
> > Yes it was previously removed, but IIRC this is the direction
> > discussed on this thread. For a idle device the release functionality could
> > be done in the context of the scsi_remove_host call, but for a busy
> > device we need to have this call to clean up later.
> >
> > -andmike
> > --
> > Michael Anderson
> > andmike@us.ibm.com
> >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: Scholarships for Techies!
> > Can't afford IT training? All 2003 ictp students receive scholarships.
> > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
> > www.ictp.com/training/sourceforge.asp
> > _______________________________________________
> > linux-usb-devel@lists.sourceforge.net
> > To unsubscribe, use the last form field at:
> > https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
>
> --
> Matthew Dharm Home: mdharm-usb@one-eyed-alien.net
> Maintainer, Linux USB Mass Storage Driver
>
> C: They kicked your ass, didn't they?
> S: They were cheating!
> -- The Chief and Stef
> User Friendly, 11/19/1997

--
Matthew Dharm Home: mdharm-usb@one-eyed-alien.net
Maintainer, Linux USB Mass Storage Driver

It was a new hope.
-- Dust Puppy
User Friendly, 12/25/1998

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]