Can we change the SCSI command timeout?

From: Matthew Dharm (mdharm-scsi@one-eyed-alien.net)
Date: Tue Jun 06 2000 - 20:52:08 EST


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-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Jun 07 2000 - 21:00:26 EST