Skip to content

Commit

Permalink
[PATCH] libata: fast exit from EH while unloading
Browse files Browse the repository at this point in the history
Make EH exit fast if the port is being unloaded.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Tejun Heo authored and Jeff Garzik committed Jun 12, 2006
1 parent f9be711 commit aeb2ecd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/scsi/libata-eh.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit aeb2ecd

Please sign in to comment.