2 Subject: Introduce own timeout for TEST_UNIT_READY
5 In error recovery, a SCSI device may need more than the 10s SENSE_TIMEOUT
6 to respond to TEST_UNIT_READY, as reported in novell bugzilla #56689.
7 The patch introduces an own timeout for TEST_UNIT_READY which is set
10 Signed-off-by: Kurt Garloff <garloff@suse.de>
13 drivers/scsi/scsi_error.c | 3 ++-
14 1 file changed, 2 insertions(+), 1 deletion(-)
16 --- a/drivers/scsi/scsi_error.c
17 +++ b/drivers/scsi/scsi_error.c
19 #include "scsi_transport_api.h"
21 #define SENSE_TIMEOUT (10*HZ)
22 +#define TEST_UNIT_READY_TIMEOUT (30*HZ)
25 * These should *probably* be handled by the host itself.
26 @@ -938,7 +939,7 @@ static int scsi_eh_tur(struct scsi_cmnd
27 int retry_cnt = 1, rtn;
30 - rtn = scsi_send_eh_cmnd(scmd, tur_command, 6, SENSE_TIMEOUT, 0);
31 + rtn = scsi_send_eh_cmnd(scmd, tur_command, 6, TEST_UNIT_READY_TIMEOUT, 0);
33 SCSI_LOG_ERROR_RECOVERY(3, printk("%s: scmd %p rtn %x\n",
34 __func__, scmd, rtn));