[8952] in linux-scsi channel archive
Can we change the SCSI command timeout?
daemon@ATHENA.MIT.EDU (Matthew Dharm)
Tue Jun 6 23:26:37 2000
Date: Tue, 6 Jun 2000 18:52:08 -0700
From: Matthew Dharm <mdharm-scsi@one-eyed-alien.net>
To: Linux SCSI list <linux-scsi@vger.rutgers.edu>,
Kernel Developer List <linux-kernel@vger.rutgers.edu>
Message-ID: <20000606185208.A26692@one-eyed-alien.net>
Mail-Followup-To: Linux SCSI list <linux-scsi@vger.rutgers.edu>,
Kernel Developer List <linux-kernel@vger.rutgers.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Can we increase the timeout for some comamnds?
Specifically, some USB devices (notably the USB/SCSI bridges) which use the
USB SCSI emulation need about 5-6 seconds to respond to an INQUIRY (as well
as a couple of other commands).
I didn't have this problem on older kernels -- I suspect that someone either
changed the timeout or change the default debugging defines.
The current timeout in 2.4.0-test1-ac8 is about 2 seconds. This is defined
in drivers/scsi/scsi.h -- increasing this to 6 seconds works fine. Or, in
scsi_scan.c, increase the timeout used for the probing INQUIRY command from
the default of SCSI_TIMEOUT to 6*HZ.
I can send a patch if it's desired -- but I was wondering what the
preferred choice is.
Matt Dharm
--
Matthew Dharm Home: mdharm@one-eyed-alien.net
Senior Engineer, QCP Inc. Work: mdharm@qcpi.com
Department of Justice agent. I have come to purify the flock.
-- DOJ agent
User Friendly, 5/22/1998
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.rutgers.edu