Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 29226
b: refs/heads/master
c: c43c555
h: refs/heads/master
v: v3
  • Loading branch information
Tejun Heo authored and Jeff Garzik committed Apr 2, 2006
1 parent e13e889 commit 60b8396
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 15 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: 5eb45c02a9944e813a0b82457607557a1f2c64b5
refs/heads/master: c43c555c3a6db7f0b55fd9b66d7ecff16e827d4e
17 changes: 4 additions & 13 deletions trunk/drivers/scsi/libata-scsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -779,31 +779,22 @@ enum scsi_eh_timer_return ata_scsi_timed_out(struct scsi_cmnd *cmd)

int ata_scsi_error(struct Scsi_Host *host)
{
struct ata_port *ap;
unsigned long flags;
struct ata_port *ap = (struct ata_port *)&host->hostdata[0];

DPRINTK("ENTER\n");

ap = (struct ata_port *) &host->hostdata[0];
/* synchronize with IRQ handler and port task */
spin_unlock_wait(&ap->host_set->lock);
ata_port_flush_task(ap);

spin_lock_irqsave(&ap->host_set->lock, flags);
WARN_ON(ap->flags & ATA_FLAG_IN_EH);
ap->flags |= ATA_FLAG_IN_EH;
WARN_ON(ata_qc_from_tag(ap, ap->active_tag) == NULL);
spin_unlock_irqrestore(&ap->host_set->lock, flags);

ata_port_flush_task(ap);

ap->ops->eng_timeout(ap);

WARN_ON(host->host_failed || !list_empty(&host->eh_cmd_q));

scsi_eh_flush_done_q(&ap->eh_done_q);

spin_lock_irqsave(&ap->host_set->lock, flags);
ap->flags &= ~ATA_FLAG_IN_EH;
spin_unlock_irqrestore(&ap->host_set->lock, flags);

DPRINTK("EXIT\n");
return 0;
}
Expand Down
1 change: 0 additions & 1 deletion trunk/include/linux/libata.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ enum {
ATA_FLAG_IRQ_MASK = (1 << 14), /* Mask IRQ in PIO xfers */

ATA_FLAG_FLUSH_PORT_TASK = (1 << 15), /* Flush port task */
ATA_FLAG_IN_EH = (1 << 16), /* EH in progress */

ATA_QCFLAG_ACTIVE = (1 << 1), /* cmd not yet ack'd to scsi lyer */
ATA_QCFLAG_SG = (1 << 3), /* have s/g table? */
Expand Down

0 comments on commit 60b8396

Please sign in to comment.