Skip to content

Commit

Permalink
[libata scsi] build fix for ATA_FLAG_IN_EH change
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Garzik committed Feb 9, 2006
1 parent 7a7921e commit 5140788
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion 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 5140788

Please sign in to comment.