aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2005-08-10 13:38:27 -0400
committerJeff Garzik <jgarzik@pobox.com>2005-08-10 13:38:27 -0400
commit42517438f9c1011a03e49a542cba32ac5a80dd8e (patch)
treee754cb76bd2db916dd38e6ba5f65a2e56a701b84 /drivers
parentfae009847c9ea3d668bbee21ce1d76764eca5039 (diff)
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 'drivers')
-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 794fb559efb..6a75ec2187f 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;