aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_error.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/scsi_error.c')
-rw-r--r--drivers/scsi/scsi_error.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/scsi/scsi_error.c b/drivers/scsi/scsi_error.c
index f43de1e56420..562474499942 100644
--- a/drivers/scsi/scsi_error.c
+++ b/drivers/scsi/scsi_error.c
@@ -45,8 +45,6 @@
45 45
46static void scsi_eh_done(struct scsi_cmnd *scmd); 46static void scsi_eh_done(struct scsi_cmnd *scmd);
47 47
48#define SENSE_TIMEOUT (10*HZ)
49
50/* 48/*
51 * These should *probably* be handled by the host itself. 49 * These should *probably* be handled by the host itself.
52 * Since it is allowed to sleep, it probably should. 50 * Since it is allowed to sleep, it probably should.
@@ -881,7 +879,7 @@ retry:
881 */ 879 */
882static int scsi_request_sense(struct scsi_cmnd *scmd) 880static int scsi_request_sense(struct scsi_cmnd *scmd)
883{ 881{
884 return scsi_send_eh_cmnd(scmd, NULL, 0, SENSE_TIMEOUT, ~0); 882 return scsi_send_eh_cmnd(scmd, NULL, 0, scmd->device->eh_timeout, ~0);
885} 883}
886 884
887/** 885/**
@@ -982,7 +980,8 @@ static int scsi_eh_tur(struct scsi_cmnd *scmd)
982 int retry_cnt = 1, rtn; 980 int retry_cnt = 1, rtn;
983 981
984retry_tur: 982retry_tur:
985 rtn = scsi_send_eh_cmnd(scmd, tur_command, 6, SENSE_TIMEOUT, 0); 983 rtn = scsi_send_eh_cmnd(scmd, tur_command, 6,
984 scmd->device->eh_timeout, 0);
986 985
987 SCSI_LOG_ERROR_RECOVERY(3, printk("%s: scmd %p rtn %x\n", 986 SCSI_LOG_ERROR_RECOVERY(3, printk("%s: scmd %p rtn %x\n",
988 __func__, scmd, rtn)); 987 __func__, scmd, rtn));