diff options
-rw-r--r-- | drivers/scsi/libsas/sas_scsi_host.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/scsi/libsas/sas_scsi_host.c b/drivers/scsi/libsas/sas_scsi_host.c index 7774eb3628ad..3f647c695da5 100644 --- a/drivers/scsi/libsas/sas_scsi_host.c +++ b/drivers/scsi/libsas/sas_scsi_host.c | |||
@@ -524,9 +524,13 @@ enum scsi_eh_timer_return sas_scsi_timed_out(struct scsi_cmnd *cmd) | |||
524 | unsigned long flags; | 524 | unsigned long flags; |
525 | 525 | ||
526 | if (!task) { | 526 | if (!task) { |
527 | SAS_DPRINTK("command 0x%p, task 0x%p, gone: EH_HANDLED\n", | 527 | cmd->timeout_per_command /= 2; |
528 | cmd, task); | 528 | SAS_DPRINTK("command 0x%p, task 0x%p, gone: %s\n", |
529 | return EH_HANDLED; | 529 | cmd, task, (cmd->timeout_per_command ? |
530 | "EH_RESET_TIMER" : "EH_NOT_HANDLED")); | ||
531 | if (!cmd->timeout_per_command) | ||
532 | return EH_NOT_HANDLED; | ||
533 | return EH_RESET_TIMER; | ||
530 | } | 534 | } |
531 | 535 | ||
532 | spin_lock_irqsave(&task->task_state_lock, flags); | 536 | spin_lock_irqsave(&task->task_state_lock, flags); |