Subject: Re: scsipi changes
To: Matthew Jacob <mjacob@feral.com>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: tech-kern
Date: 07/16/2001 12:24:53
On Sun, Jul 15, 2001 at 01:03:01PM -0700, Matthew Jacob wrote:
> 
> 
> > On Sat, Jul 14, 2001 at 12:19:08PM -0400, der Mouse wrote:
> > > > I can't see why you would want to detach all periph without
> > > > detatching the associated bus, [...]
> > >
> > > Say I've got a second SCSI card in the machine and I am about to
> > > disconnect - or just have disconnected - the cable to multiple external
> > > devices.  It may be more convenient to just "detach 'em all" than going
> > > through to figure out which ones to hit.
> >
> > How would the controller know that you have disconnected the cable ?
> > All it'll see are selection timeout errors.
> 
> Don't necessarily assume this. For things like USB or Fibre Channel you'll
> know if the entire bus has been wiped.

In this case it's the whole scsibus you want to trow away, not just devices on
it. scsibusdetach() is here for this.

> It's also true that in some SPI SCSI
> configurations you might in fact know if an entire cable is gone (extra cable
> detect lines).

OK. Anyway it's just a matter of moving more code from scsibusdetach() to
scsipi_target_detach() :)

--
Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
--