Skip to contentSkip to conversation

libata: fast exit from EH while unloading

PATCH Applied Tejun Heo 2 participants 2 messages Jun 12, 2006

Subsystems (2)
lore
Share & tools
lore

Tejun Heo

author
#0 lore raw

PATCH 1/1 libata: fast exit from EH while unloading

Make EH exit fast if the port is being unloaded.

---

 drivers/scsi/libata-eh.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

82cc14802031e17e594daee60bfb99767dfc04da

drivers/scsi/libata-eh.c +4 -0
index 782dfba..531a4e1 100644
@@ -1680,6 +1680,10 @@ static int ata_eh_recover(struct ata_por
 	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;
Signature · 1 line
1.3.2