Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 29284
b: refs/heads/master
c: 7401abf
h: refs/heads/master
v: v3
  • Loading branch information
Tejun Heo committed May 15, 2006
1 parent dfd4040 commit a54bf35
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: f8c2c4202d86e14ca03b7adc7ebcb30fc74b24e1
refs/heads/master: 7401abf2f44695ef44eef47d5deba1c20214a063
5 changes: 3 additions & 2 deletions trunk/drivers/scsi/libata-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -4083,8 +4083,6 @@ void ata_qc_free(struct ata_queued_cmd *qc)
qc->flags = 0;
tag = qc->tag;
if (likely(ata_tag_valid(tag))) {
if (tag == ap->active_tag)
ap->active_tag = ATA_TAG_POISON;
qc->tag = ATA_TAG_POISON;
clear_bit(tag, &ap->qactive);
}
Expand All @@ -4098,6 +4096,9 @@ void __ata_qc_complete(struct ata_queued_cmd *qc)
if (likely(qc->flags & ATA_QCFLAG_DMAMAP))
ata_sg_clean(qc);

/* command should be marked inactive atomically with qc completion */
qc->ap->active_tag = ATA_TAG_POISON;

/* atapi: mark qc as inactive to prevent the interrupt handler
* from completing the command twice later, before the error handler
* is called. (when rc != 0 and atapi request sense is needed)
Expand Down

0 comments on commit a54bf35

Please sign in to comment.