Commit 42517438 authored by Tejun Heo's avatar Tejun Heo Committed by Jeff Garzik

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.
parent fae00984
...@@ -385,6 +385,7 @@ int ata_scsi_error(struct Scsi_Host *host) ...@@ -385,6 +385,7 @@ int ata_scsi_error(struct Scsi_Host *host)
* appropriate place * appropriate place
*/ */
host->host_failed--; host->host_failed--;
INIT_LIST_HEAD(&host->eh_cmd_q);
DPRINTK("EXIT\n"); DPRINTK("EXIT\n");
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment