Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[SCSI] Increase default timeout for INQUIRY

This patch (as1224) changes the default timeout for INQUIRY commands
from 3 seconds to 20 seconds, which is the value used by Windows for
USB Mass-Storage devices. Some of these devices, like the Corsair
Flash Voyager (see Bugzilla #12188) really do need a long timeout.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>

authored by

Alan Stern and committed by
James Bottomley
14faf12f 20b09c29

+2 -2
+2 -2
drivers/scsi/scsi_scan.c
··· 115 115 "REPORT LUNS maximum number of LUNS received (should be" 116 116 " between 1 and 16384)"); 117 117 118 - static unsigned int scsi_inq_timeout = SCSI_TIMEOUT/HZ+3; 118 + static unsigned int scsi_inq_timeout = SCSI_TIMEOUT/HZ + 18; 119 119 120 120 module_param_named(inq_timeout, scsi_inq_timeout, uint, S_IRUGO|S_IWUSR); 121 121 MODULE_PARM_DESC(inq_timeout, 122 122 "Timeout (in seconds) waiting for devices to answer INQUIRY." 123 - " Default is 5. Some non-compliant devices need more."); 123 + " Default is 20. Some devices may need more; most need less."); 124 124 125 125 /* This lock protects only this list */ 126 126 static DEFINE_SPINLOCK(async_scan_lock);