Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 118399
b: refs/heads/master
c: a464189
h: refs/heads/master
i:
  118397: c38c5cb
  118395: b6eb4ea
  118391: 006f1e7
  118383: 1758958
  118367: 66f667a
  118335: 85c382d
  118271: 6035509
v: v3
  • Loading branch information
Elias Oltmanns authored and Jeff Garzik committed Nov 4, 2008
1 parent 8917f79 commit ca602c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: 3c324283e6cdb79210cf7975c3e40d3ba3e672b2
refs/heads/master: a464189de350b050aa8f334bd4cc53ed406e56dd
7 changes: 4 additions & 3 deletions trunk/drivers/ata/libata-scsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ static ssize_t ata_scsi_park_show(struct device *device,
struct ata_port *ap;
struct ata_link *link;
struct ata_device *dev;
unsigned long flags;
unsigned long flags, now;
unsigned int uninitialized_var(msecs);
int rc = 0;

Expand All @@ -208,10 +208,11 @@ static ssize_t ata_scsi_park_show(struct device *device,
}

link = dev->link;
now = jiffies;
if (ap->pflags & ATA_PFLAG_EH_IN_PROGRESS &&
link->eh_context.unloaded_mask & (1 << dev->devno) &&
time_after(dev->unpark_deadline, jiffies))
msecs = jiffies_to_msecs(dev->unpark_deadline - jiffies);
time_after(dev->unpark_deadline, now))
msecs = jiffies_to_msecs(dev->unpark_deadline - now);
else
msecs = 0;

Expand Down

0 comments on commit ca602c6

Please sign in to comment.