Seek error, CD writer on AHA2940

2001-07-19 Thread John Summerfield
I burned a CD, apparently without problem, then tried to run md5sum. Jul 19 21:28:15 dugite kernel: Detected scsi CD-ROM sr0 at scsi0, channel 0, id 3, lun 0 Jul 19 21:28:15 dugite kernel: sr0: scsi3-mmc drive: 16x/16x writer cd/rw xa/form2 cdda tray Jul 19 21:32:56 dugite kernel: scsi0: ERROR

question on io_request_lock

2001-07-19 Thread MEHTA,HIREN (A-SanJose,ex1)
Hi List, If I decide that I do not want to depend on io_request_lock to maintain the consistency of the data structures in my driver, then do I ever need to acquire this lock and release it in the driver ? e.g. Do I need to acquire io_request_lock before I call the done() routine and release it a

Re: question on io_request_lock

2001-07-19 Thread Doug Ledford
"MEHTA,HIREN (A-SanJose,ex1)" wrote: > > Hi List, > > If I decide that I do not want to depend on io_request_lock > to maintain the consistency of the data structures in my driver, > then do I ever need to acquire this lock and release it in the driver ? > e.g. Do I need to acquire io_request_lo

RE: LTO Device

2001-07-19 Thread FALKINDER,DAVID (HP-UnitedKingdom,ex2)
Edouard, I work for the division that actually produces these products. We regularly test using various Linux kernels, and Adaptec controllers. If fact, a whole chunk of our test system depends on Linux as it's the only OS that'll do 16Mb contiguous transfers, so trust me when I say, the

Re: LTO Device

2001-07-19 Thread Steffen Grunewald
On Thu 2001-07-19 (17:47), FALKINDER,DAVID (HP-UnitedKingdom,ex2) wrote: > Edouard, > > > I work for the division that actually produces these products. We > regularly test using various Linux kernels, and Adaptec controllers. If > fact, a whole chunk of our test system depends on Linux as

In BDR scsi_unjam_host does not seems to restart muliplte commands failed for the same device???

2001-07-19 Thread rakesh rakesh
Hi List, For BDR(bus device reset) case scsi_unjam_host does not restart the multiple commands failed for the same device instead of one.So automatically host_failed!=0 and it kicks off Bus_reset which should not be the case.Unless all the commands failed for that particular device has been rest

Re: question on io_request_lock

2001-07-19 Thread Martin Peschke3
> Yes, the done() function needs to be wrapped (this isn't so much because it > actually needs it as it is that you are calling mid layer code and you need to > adhere to what it tells you locking semantics are, which in this case is > "always hold the io_request_lock because that's how I keep my

RE: question on io_request_lock

2001-07-19 Thread MEHTA,HIREN (A-SanJose,ex1)
Well, I guess the problem is that : scsi layer does not know whether the hba driver will do its own locking and release io_request_lock or not. Before calling any entry point, scsi layer is anyway acquires io_request_lock. Also, if you are depending on the io_request_lock, then in the interrupt h

Re: if queuecommand does not return zero

2001-07-19 Thread Martin Peschke3
>As things currently stand there is no API function to do this. Just > resetting the host_blocked flag wouldn't be enough - if there were pending > items in the queue a new entry would not be added until such a time as > something new was inserted. > > That being said, there probably need

RE: question on io_request_lock

2001-07-19 Thread Martin Peschke3
> Well, I guess the problem is that : scsi layer does not know whether the > hba driver will do its own locking and release io_request_lock or not. > Before calling any entry point, scsi layer is anyway acquires > io_request_lock. > Also, if you are depending on the io_request_lock, then in the i

Re: question on io_request_lock

2001-07-19 Thread Doug Ledford
"MEHTA,HIREN (A-SanJose,ex1)" wrote: > > Well, I guess the problem is that : scsi layer does not know whether the > hba driver will do its own locking and release io_request_lock or not. > Before calling any entry point, scsi layer is anyway acquires > io_request_lock. > Also, if you are dependin

RE: Module unloading problems with hybrid scsi/block driver

2001-07-19 Thread Cameron, Steve
I wrote: [...] > > 2) I tried to do MOD_INC_USE_COUNT when more than zero SCSI commands > become outstanding and MOD_DEC_USE_COUNT when zero scsi commands are > outstanding. But, I can seemingly still manage to unload the driver > while some processes is accessing a SCSI device. (Sometimes it

[PATCH] make gdth.c check scsi_allocate_device return code (246ac5)

2001-07-19 Thread Rasmus Andersen
Hi. The following patch makes drivers/scsi/gdth.c check the return code of scsi_allocate_device(). It applies against 246ac5 and was raised in a posting from the Stanford team a while ago. --- linux-246-ac5-clean/drivers/scsi/gdth.c Wed Jun 20 20:19:02 2001 +++ linux-246-ac5/drivers/scsi/gd

[PATCH] make gdth_proc.c check scsi_allocate_device return code (246ac5)

2001-07-19 Thread Rasmus Andersen
Hi. The following patch makes drivers/scsi/gdth_proc.c check the return code of scsi_allocate_device(). It applies against 246ac5 and was raised in a posting from the Stanford team a while ago. --- linux-246-ac5-clean/drivers/scsi/gdth_proc.cSun May 20 02:43:06 2001 +++ linux-246-ac5

LTO Device - Solved

2001-07-19 Thread Edouard Soriano
I feel this problem raised because I was using a wrong SCSI cable between the Linux box and the extenral LTO device. I switched on a 160MB certified cable of 1 meter and the system is working fine now. The HP Ultrium and the Python are connected on separate SCSI channels, so the transfer speed o

2.4.7-pre9..

2001-07-19 Thread Linus Torvalds
I'm getting ready to do a 2.4.7, but one of the fixes in 2.4.7 is a nasty SMP race that was found and made it clear that using an old trick of having a semaphore on the stack and doing "down()" on it to wait for some event (that would do the "up()") was a really bad idea. This kind of trick was

Re: 2.4.7-pre9..

2001-07-19 Thread Jens Axboe
On Thu, Jul 19 2001, Linus Torvalds wrote: > > I'm getting ready to do a 2.4.7, but one of the fixes in 2.4.7 is a nasty > SMP race that was found and made it clear that using an old trick of > having a semaphore on the stack and doing "down()" on it to wait for some > event (that would do the "u