Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 21816
b: refs/heads/master
c: 5140788
h: refs/heads/master
v: v3
  • Loading branch information
Jeff Garzik committed Feb 9, 2006
1 parent 3279759 commit b76d249
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 7a7921e8661a6b9fb99400983ee67df7e125853b
refs/heads/master: 5140788f77d71b4f05fde217adbfb0c92f28f20c
4 changes: 3 additions & 1 deletion trunk/drivers/scsi/libata-scsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -732,15 +732,17 @@ int ata_scsi_slave_config(struct scsi_device *sdev)
int ata_scsi_error(struct Scsi_Host *host)
{
struct ata_port *ap;
unsigned long flags;

DPRINTK("ENTER\n");

ap = (struct ata_port *) &host->hostdata[0];

spin_lock_irqsave(&ap->host_set->lock, flags);
assert(!(ap->flags & ATA_FLAG_IN_EH));
ap->flags |= ATA_FLAG_IN_EH;
spin_unlock_irqrestore(&ap->host_set->lock, flags);

ap = (struct ata_port *) &host->hostdata[0];
ap->ops->eng_timeout(ap);

assert(host->host_failed == 0 && list_empty(&host->eh_cmd_q));
Expand Down

0 comments on commit b76d249

Please sign in to comment.