linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] libata: fast exit from EH while unloading
@ 2006-06-12  5:11 Tejun Heo
  2006-06-12  6:11 ` Jeff Garzik
  0 siblings, 1 reply; 2+ messages in thread
From: Tejun Heo @ 2006-06-12  5:11 UTC (permalink / raw)
  To: Jeff Garzik, linux-ide

Make EH exit fast if the port is being unloaded.

Signed-off-by: Tejun Heo <htejun@gmail.com>

---

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

82cc14802031e17e594daee60bfb99767dfc04da
diff --git a/drivers/scsi/libata-eh.c b/drivers/scsi/libata-eh.c
index 782dfba..531a4e1 100644
--- a/drivers/scsi/libata-eh.c
+++ b/drivers/scsi/libata-eh.c
@@ -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;
-- 
1.3.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] libata: fast exit from EH while unloading
  2006-06-12  5:11 [PATCH] libata: fast exit from EH while unloading Tejun Heo
@ 2006-06-12  6:11 ` Jeff Garzik
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff Garzik @ 2006-06-12  6:11 UTC (permalink / raw)
  To: Tejun Heo; +Cc: linux-ide

applied


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-06-12  6:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-12  5:11 [PATCH] libata: fast exit from EH while unloading Tejun Heo
2006-06-12  6:11 ` Jeff Garzik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).