aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/ata/libata-eh.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c
index d2409a8acece..7ccd0ce0e7d4 100644
--- a/drivers/ata/libata-eh.c
+++ b/drivers/ata/libata-eh.c
@@ -1206,7 +1206,10 @@ void ata_eh_about_to_do(struct ata_link *link, struct ata_device *dev,
1206 1206
1207 ata_eh_clear_action(link, dev, ehi, action); 1207 ata_eh_clear_action(link, dev, ehi, action);
1208 1208
1209 if (!(ehc->i.flags & ATA_EHI_QUIET)) 1209 /* About to take EH action, set RECOVERED. Ignore actions on
1210 * slave links as master will do them again.
1211 */
1212 if (!(ehc->i.flags & ATA_EHI_QUIET) && link != ap->slave_link)
1210 ap->pflags |= ATA_PFLAG_RECOVERED; 1213 ap->pflags |= ATA_PFLAG_RECOVERED;
1211 1214
1212 spin_unlock_irqrestore(ap->lock, flags); 1215 spin_unlock_irqrestore(ap->lock, flags);