Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aeb2ecd6 authored by Tejun Heo's avatar Tejun Heo Committed by Jeff Garzik
Browse files

[PATCH] libata: fast exit from EH while unloading



Make EH exit fast if the port is being unloaded.

Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent f9be7113
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -1680,6 +1680,10 @@ static int ata_eh_recover(struct ata_port *ap, ata_prereset_fn_t prereset,
	down_xfermask = 0;
	down_xfermask = 0;
	rc = 0;
	rc = 0;


	/* if UNLOADING, finish immediately */
	if (ap->flags & ATA_FLAG_UNLOADING)
		goto out;

	/* skip EH if possible. */
	/* skip EH if possible. */
	if (ata_eh_skip_recovery(ap))
	if (ata_eh_skip_recovery(ap))
		ehc->i.action = 0;
		ehc->i.action = 0;