Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 68060
b: refs/heads/master
c: cf1b86c
h: refs/heads/master
v: v3
  • Loading branch information
Tejun Heo authored and Jeff Garzik committed Oct 12, 2007
1 parent 0903d57 commit 06b0d73
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 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: 8989805d6d176aa32c0e9a68a536aa4c8ef5231c
refs/heads/master: cf1b86c8ab41fe2b2a2eb59c9a2ea9a7e463653a
13 changes: 9 additions & 4 deletions trunk/drivers/ata/libata-eh.c
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,8 @@ void ata_scsi_error(struct Scsi_Host *host)
repeat:
/* invoke error handler */
if (ap->ops->error_handler) {
struct ata_link *link;

/* kill fast drain timer */
del_timer_sync(&ap->fastdrain_timer);

Expand All @@ -372,9 +374,11 @@ void ata_scsi_error(struct Scsi_Host *host)
/* fetch & clear EH info */
spin_lock_irqsave(ap->lock, flags);

memset(&ap->link.eh_context, 0, sizeof(ap->link.eh_context));
ap->link.eh_context.i = ap->link.eh_info;
memset(&ap->link.eh_info, 0, sizeof(ap->link.eh_info));
__ata_port_for_each_link(link, ap) {
memset(&link->eh_context, 0, sizeof(link->eh_context));
link->eh_context.i = link->eh_info;
memset(&link->eh_info, 0, sizeof(link->eh_info));
}

ap->pflags |= ATA_PFLAG_EH_IN_PROGRESS;
ap->pflags &= ~ATA_PFLAG_EH_PENDING;
Expand Down Expand Up @@ -410,7 +414,8 @@ void ata_scsi_error(struct Scsi_Host *host)
}

/* this run is complete, make sure EH info is clear */
memset(&ap->link.eh_info, 0, sizeof(ap->link.eh_info));
__ata_port_for_each_link(link, ap)
memset(&link->eh_info, 0, sizeof(link->eh_info));

/* Clear host_eh_scheduled while holding ap->lock such
* that if exception occurs after this point but
Expand Down

0 comments on commit 06b0d73

Please sign in to comment.