diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/scsi.c | 10 | ||||
-rw-r--r-- | drivers/scsi/scsi_lib.c | 8 |
2 files changed, 7 insertions, 11 deletions
diff --git a/drivers/scsi/scsi.c b/drivers/scsi/scsi.c index 05d2bd075fd4..0d730f646bce 100644 --- a/drivers/scsi/scsi.c +++ b/drivers/scsi/scsi.c | |||
@@ -638,10 +638,12 @@ int scsi_dispatch_cmd(struct scsi_cmnd *cmd) | |||
638 | } | 638 | } |
639 | spin_unlock_irqrestore(host->host_lock, flags); | 639 | spin_unlock_irqrestore(host->host_lock, flags); |
640 | if (rtn) { | 640 | if (rtn) { |
641 | atomic_inc(&cmd->device->iodone_cnt); | 641 | if (scsi_delete_timer(cmd)) { |
642 | scsi_queue_insert(cmd, | 642 | atomic_inc(&cmd->device->iodone_cnt); |
643 | (rtn == SCSI_MLQUEUE_DEVICE_BUSY) ? | 643 | scsi_queue_insert(cmd, |
644 | rtn : SCSI_MLQUEUE_HOST_BUSY); | 644 | (rtn == SCSI_MLQUEUE_DEVICE_BUSY) ? |
645 | rtn : SCSI_MLQUEUE_HOST_BUSY); | ||
646 | } | ||
645 | SCSI_LOG_MLQUEUE(3, | 647 | SCSI_LOG_MLQUEUE(3, |
646 | printk("queuecommand : request rejected\n")); | 648 | printk("queuecommand : request rejected\n")); |
647 | } | 649 | } |
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c index c3bb28c3feef..9f996499fa9d 100644 --- a/drivers/scsi/scsi_lib.c +++ b/drivers/scsi/scsi_lib.c | |||
@@ -128,13 +128,7 @@ int scsi_queue_insert(struct scsi_cmnd *cmd, int reason) | |||
128 | printk("Inserting command %p into mlqueue\n", cmd)); | 128 | printk("Inserting command %p into mlqueue\n", cmd)); |
129 | 129 | ||
130 | /* | 130 | /* |
131 | * We are inserting the command into the ml queue. First, we | 131 | * Set the appropriate busy bit for the device/host. |
132 | * cancel the timer, so it doesn't time out. | ||
133 | */ | ||
134 | scsi_delete_timer(cmd); | ||
135 | |||
136 | /* | ||
137 | * Next, set the appropriate busy bit for the device/host. | ||
138 | * | 132 | * |
139 | * If the host/device isn't busy, assume that something actually | 133 | * If the host/device isn't busy, assume that something actually |
140 | * completed, and that we should be able to queue a command now. | 134 | * completed, and that we should be able to queue a command now. |