[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-scsi
Subject:    Re: [PATCH] [RFC] Advanced TCA SCSI Disk Hotswap
From:       Mike Anderson <andmike () us ! ibm ! com>
Date:       2002-10-24 22:58:49
[Download RAW message or body]

James Bottomley [James.Bottomley@steeleye.com] wrote:
> sdake@mvista.com said:
> > I plan to produce a now patch that dumps the filesystem interface and
> > replaces it with driverfs files in /sys/bus/scsi.  These things take
> > time, but I hope to be  finished by October 25th. 
> 
> OK, that's good, thanks.
> 

A note here is that the SCSI device model still may need to be altered. I
am having issues of trying to fill out support and in looks like we
might have to restructure a few things. 

If the nodes are structure under your own directory they should be ok.

It makes a asymmetric interface, but some parameters can be applied on
removal by a cd to the correct leaf node.

Lock operations are somewhat simplified if we convert some of these
operations to the device model.

> There will be a point where for a large number of drivers, a linear scan even 
> in the kernel will be slower than a good DB lookup in userspace.
> 
> > Hotplugs on FibreChannel don't trigger "events".  What they can do is
> > LIP (loop initialization procedure) if the device has been configured
> > in it's SCSI code pages to  do such a thing.  Since this is device
> > specific I'd hate to rely on it for hotswap. 
> 
> They don't now, but they should.  The LIP protocol makes the FC driver aware 
> of the gain or loss of devices.  This should be communicated to the mid-layer 
> and then trigger a hotplug event.  Someone needs to write this, I was just 
> wondering if you might.

In switched FC fabrics you do receive SCNs if you have registered for
them which most adapters do. 

We already have interface support from the device model we just need to make the
calls.

-andmike
--
Michael Anderson
andmike@us.ibm.com

-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic