Re: scsi_forget_host() and scsi_remove_device()

Matthew Dharm
2003-07-05T16:11:17Z

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

On Sat, Jul 05, 2003 at 10:11:18AM -0400, Alan Stern wrote:
> On Fri, 4 Jul 2003, Matthew Dharm wrote:
>
> > On Fri, Jul 04, 2003 at 03:36:55PM -0400, Alan Stern wrote:
> > > Finally a segmentation violation occurs when __scsi_get_command() tries to
> > > access dev->host->cmd_pool->gfp_mask. Not surprising since the host
> > > structure is gone.
> >
> > This could still be our (usb-storage) problem.
> >
> > We're not supposed to release the host structures until after ->release is
> > called. I think we're violating that right now.
>
> Although that used to be true, it's not true any longer. The SCSI
> midlayer interface changed very recently, and ->release is no longer
> called for hot-pluggable hosts. See
> Documentation/scsi/scsi_mid_low_api.txt in 2.5.74.

Oh. Well, that's convenient then. One less thing for me to worry about
for this weekend. :)

Matt

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

It's not that hard. No matter what the problem is, tell the customer
to reinstall Windows.
-- Nurse
User Friendly, 3/22/1998

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