From: Tejun Heo Date: Wed, 10 Aug 2005 17:38:27 +0000 (-0400) Subject: libata: fix EH-related lockup by properly cleaning EH command list X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=42517438f9c1011a03e49a542cba32ac5a80dd8e;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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. --- 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;