Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 30903
b: refs/heads/master
c: 64f65ca
h: refs/heads/master
i:
  30901: e97d308
  30899: dfb8d40
  30895: a40fa54
v: v3
  • Loading branch information
Tejun Heo authored and Jeff Garzik committed Jun 27, 2006
1 parent ea029d1 commit 5d2a4bb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 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: af181c2d765ec9735356bc313ab9e844ec2c7a24
refs/heads/master: 64f65ca6e7a5a42df22ff29dadfff389dc388f65
9 changes: 8 additions & 1 deletion trunk/drivers/scsi/libata-eh.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,13 @@ static int ata_ering_map(struct ata_ering *ering,
return rc;
}

static unsigned int ata_eh_dev_action(struct ata_device *dev)
{
struct ata_eh_context *ehc = &dev->ap->eh_context;

return ehc->i.action | ehc->i.dev_action[dev->devno];
}

static void ata_eh_clear_action(struct ata_device *dev,
struct ata_eh_info *ehi, unsigned int action)
{
Expand Down Expand Up @@ -1592,7 +1599,7 @@ static int ata_eh_revalidate_and_attach(struct ata_port *ap,
unsigned int action;

dev = &ap->device[i];
action = ehc->i.action | ehc->i.dev_action[dev->devno];
action = ata_eh_dev_action(dev);

if (action & ATA_EH_REVALIDATE && ata_dev_enabled(dev)) {
if (ata_port_offline(ap)) {
Expand Down

0 comments on commit 5d2a4bb

Please sign in to comment.