summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/libata-scsi.c
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2005-08-10 19:38:27 +0200
committerJeff Garzik <jgarzik@pobox.com>2005-08-10 19:38:27 +0200
commit42517438f9c1011a03e49a542cba32ac5a80dd8e (patch)
treee754cb76bd2db916dd38e6ba5f65a2e56a701b84 /drivers/scsi/libata-scsi.c
parent[PATCH] sata: fix sata_sx4 dma_prep to not use sg->length (diff)
downloadlinux-42517438f9c1011a03e49a542cba32ac5a80dd8e.tar.xz
linux-42517438f9c1011a03e49a542cba32ac5a80dd8e.zip
libata: fix EH-related lockup by properly cleaning EH command list
Yet another hack due to the fact that libata is the only user of SCSI's ->eh_strategy_handler() hook.
Diffstat (limited to '')
-rw-r--r--drivers/scsi/libata-scsi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/libata-scsi.c b/drivers/scsi/libata-scsi.c
index 794fb559efb0..6a75ec2187fd 100644
--- a/drivers/scsi/libata-scsi.c
+++ b/drivers/scsi/libata-scsi.c
@@ -385,6 +385,7 @@ int ata_scsi_error(struct Scsi_Host *host)
* appropriate place
*/
host->host_failed--;
+ INIT_LIST_HEAD(&host->eh_cmd_q);
DPRINTK("EXIT\n");
return 0;