RE: One question about SCSI device hotplug

2005-03-02 Thread James . Smart
> Thank you, Matt. Then I have another question: > As we know SCSI mid-layer issue a command to LLDD by > host->hostt->queuecommand(cmd, scsi_done); and in the meantime a > timer is set. When the timer expires, SCSI mid-layer know the > execution of command has failed. > My question is: when SCS

RE: One question about SCSI device hotplug

2005-03-01 Thread Zhao, Forrest
hostt->queuecommand(cmd, scsi_done); and in the meantime a timer is set. When the timer expires, SCSI mid-layer know the execution of command has failed. My question is: when SCSI device is surprise-removed, if SCSI mid-layer issue a command to this removed device, will mid-layer has to wait a t

Re: One question about SCSI device hotplug

2005-03-01 Thread Matt Domsch
On Wed, Mar 02, 2005 at 12:47:46PM +0800, Zhao, Forrest wrote: > < but the LLDD doesn't get an interrupt from the firmware on such > events). > > So you mean that when SCSI device is surprise-removed, HBA will not > assert an interrupt to kernel? Even LLDD doesn't know the SCSI device is > removed

RE: One question about SCSI device hotplug

2005-03-01 Thread Zhao, Forrest
< but the LLDD doesn't get an interrupt from the firmware on such events). So you mean that when SCSI device is surprise-removed, HBA will not assert an interrupt to kernel? Even LLDD doesn't know the SCSI device is removed? Thanks, Forrest - To unsubscribe from this list: send the line "unsubscr

Re: One question about SCSI device hotplug

2005-03-01 Thread Matt Domsch
On Tue, Mar 01, 2005 at 11:35:28AM -0500, [EMAIL PROTECTED] wrote: > > On Tue, Mar 01, 2005 at 05:06:55PM +0800, Zhao, Forrest wrote: > > > If I surprisingly hot-remove a SCSI disk from HBA manually > > > without executing "echo "scsi remove-single-device > > >" > /proc/scsi/scsi", can the "ho

RE: One question about SCSI device hotplug

2005-03-01 Thread Rajat Jain, Noida
kernel.org; Caushik, Ramesh Subject: Re: One question about SCSI device hotplug On Tue, Mar 01, 2005 at 05:06:55PM +0800, Zhao, Forrest wrote: > If I surprisingly hot-remove a SCSI disk from HBA manually without > executing "echo "scsi remove-single-device" > >

RE: One question about SCSI device hotplug

2005-03-01 Thread James . Smart
> On Tue, Mar 01, 2005 at 05:06:55PM +0800, Zhao, Forrest wrote: > > If I surprisingly hot-remove a SCSI disk from HBA manually > > without executing "echo "scsi remove-single-device > >" > /proc/scsi/scsi", can the "hotplug" > > event be notified to SCSI mid-layer or user space? > > > > I br

RE: One question about SCSI device hotplug

2005-03-01 Thread Nagpure, Dinesh
If you are trying to automate the process then taking a look at SCSI RAS tools at http://scsirastools.sourceforge.net might help. I am not sure how much are these tools in use around (any comments?). Alternatively If you are running on a disk hot-swap capable system the enclosure service processor

Re: One question about SCSI device hotplug

2005-03-01 Thread Matthew Wilcox
On Tue, Mar 01, 2005 at 05:06:55PM +0800, Zhao, Forrest wrote: > If I surprisingly hot-remove a SCSI disk from HBA manually > without executing "echo "scsi remove-single-device >" > /proc/scsi/scsi", can the "hotplug" > event be notified to SCSI mid-layer or user space? > > I briefly browse s