Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 75361
b: refs/heads/master
c: 2695e36
h: refs/heads/master
i:
  75359: 18e80fc
v: v3
  • Loading branch information
Tejun Heo authored and Jeff Garzik committed Jan 10, 2008
1 parent 30591a0 commit 8195ab9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8048307dbc3cfc30690b131e786fb57157fbdb11
refs/heads/master: 2695e36616c3ece5e8e30666868fc7c90dc3fc75
20 changes: 15 additions & 5 deletions trunk/drivers/ata/libata-eh.c
Original file line number Diff line number Diff line change
Expand Up @@ -1733,11 +1733,15 @@ static void ata_eh_link_autopsy(struct ata_link *link)
ehc->i.action &= ~ATA_EH_PERDEV_MASK;
}

/* consider speeding down */
/* propagate timeout to host link */
if ((all_err_mask & AC_ERR_TIMEOUT) && !ata_is_host_link(link))
ap->link.eh_context.i.err_mask |= AC_ERR_TIMEOUT;

/* record error and consider speeding down */
dev = ehc->i.dev;
if (!dev && ata_link_max_devices(link) == 1 &&
ata_dev_enabled(link->device))
dev = link->device;
if (!dev && ((ata_link_max_devices(link) == 1 &&
ata_dev_enabled(link->device))))
dev = link->device;

if (dev)
ehc->i.action |= ata_eh_speed_down(dev, is_io, all_err_mask);
Expand All @@ -1759,8 +1763,14 @@ void ata_eh_autopsy(struct ata_port *ap)
{
struct ata_link *link;

__ata_port_for_each_link(link, ap)
ata_port_for_each_link(link, ap)
ata_eh_link_autopsy(link);

/* Autopsy of fanout ports can affect host link autopsy.
* Perform host link autopsy last.
*/
if (ap->nr_pmp_links)
ata_eh_link_autopsy(&ap->link);
}

/**
Expand Down

0 comments on commit 8195ab9

Please sign in to comment.