aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/libata-eh.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata/libata-eh.c')
-rw-r--r--drivers/ata/libata-eh.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c
index 77ef43e320ea..07f41be38fbe 100644
--- a/drivers/ata/libata-eh.c
+++ b/drivers/ata/libata-eh.c
@@ -46,6 +46,7 @@
46 46
47#include <linux/libata.h> 47#include <linux/libata.h>
48 48
49#include <trace/events/libata.h>
49#include "libata.h" 50#include "libata.h"
50 51
51enum { 52enum {
@@ -2291,6 +2292,7 @@ static void ata_eh_link_autopsy(struct ata_link *link)
2291 all_err_mask |= qc->err_mask; 2292 all_err_mask |= qc->err_mask;
2292 if (qc->flags & ATA_QCFLAG_IO) 2293 if (qc->flags & ATA_QCFLAG_IO)
2293 eflags |= ATA_EFLAG_IS_IO; 2294 eflags |= ATA_EFLAG_IS_IO;
2295 trace_ata_eh_link_autopsy_qc(qc);
2294 } 2296 }
2295 2297
2296 /* enforce default EH actions */ 2298 /* enforce default EH actions */
@@ -2325,7 +2327,7 @@ static void ata_eh_link_autopsy(struct ata_link *link)
2325 eflags |= ATA_EFLAG_DUBIOUS_XFER; 2327 eflags |= ATA_EFLAG_DUBIOUS_XFER;
2326 ehc->i.action |= ata_eh_speed_down(dev, eflags, all_err_mask); 2328 ehc->i.action |= ata_eh_speed_down(dev, eflags, all_err_mask);
2327 } 2329 }
2328 2330 trace_ata_eh_link_autopsy(dev, ehc->i.action, all_err_mask);
2329 DPRINTK("EXIT\n"); 2331 DPRINTK("EXIT\n");
2330} 2332}
2331 2333