]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
libata: fix EH-related lockup by properly cleaning EH command list
authorTejun Heo <htejun@gmail.com>
Wed, 10 Aug 2005 17:38:27 +0000 (13:38 -0400)
committerJeff Garzik <jgarzik@pobox.com>
Wed, 10 Aug 2005 17:38:27 +0000 (13:38 -0400)
Yet another hack due to the fact that libata is the only user of SCSI's
->eh_strategy_handler() hook.

drivers/scsi/libata-scsi.c

index 794fb559efb080aa9986df125cd3730ff48ee5ae..6a75ec2187fde5451b1ae77443ecc8aceb96e319 100644 (file)
@@ -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;