浏览代码

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.
Tejun Heo 20 年之前
父节点
当前提交
42517438f9
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/scsi/libata-scsi.c

+ 1 - 0
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;