diff options
author | Tejun Heo <htejun@gmail.com> | 2006-06-24 07:30:19 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-06-26 20:59:27 -0400 |
commit | beb07c1a56e2cff3842e22c473bd1aaaea08e532 (patch) | |
tree | a78fc940254de778c96988876001504ab9c945c9 /drivers | |
parent | 64f65ca6e7a5a42df22ff29dadfff389dc388f65 (diff) |
[PATCH] libata: clear EH action on device detach
Clear related EH action on device detach such that new device doesn't
receive EH actions scheduled for the old one.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/libata-eh.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/scsi/libata-eh.c b/drivers/scsi/libata-eh.c index c7e6298db050..bf5a72aca8a4 100644 --- a/drivers/scsi/libata-eh.c +++ b/drivers/scsi/libata-eh.c | |||
@@ -734,6 +734,10 @@ static void ata_eh_detach_dev(struct ata_device *dev) | |||
734 | ap->flags |= ATA_FLAG_SCSI_HOTPLUG; | 734 | ap->flags |= ATA_FLAG_SCSI_HOTPLUG; |
735 | } | 735 | } |
736 | 736 | ||
737 | /* clear per-dev EH actions */ | ||
738 | ata_eh_clear_action(dev, &ap->eh_info, ATA_EH_PERDEV_MASK); | ||
739 | ata_eh_clear_action(dev, &ap->eh_context.i, ATA_EH_PERDEV_MASK); | ||
740 | |||
737 | spin_unlock_irqrestore(ap->lock, flags); | 741 | spin_unlock_irqrestore(ap->lock, flags); |
738 | } | 742 | } |
739 | 743 | ||