提交 aeb2ecd6 编写于 作者: T Tejun Heo 提交者: Jeff Garzik

[PATCH] libata: fast exit from EH while unloading

Make EH exit fast if the port is being unloaded.
Signed-off-by: NTejun Heo <htejun@gmail.com>
Signed-off-by: NJeff Garzik <jeff@garzik.org>
上级 f9be7113
......@@ -1680,6 +1680,10 @@ static int ata_eh_recover(struct ata_port *ap, ata_prereset_fn_t prereset,
down_xfermask = 0;
rc = 0;
/* if UNLOADING, finish immediately */
if (ap->flags & ATA_FLAG_UNLOADING)
goto out;
/* skip EH if possible. */
if (ata_eh_skip_recovery(ap))
ehc->i.action = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册