Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 6045
b: refs/heads/master
c: 3f3791d
h: refs/heads/master
i:
  6043: 2a3775e
v: v3
  • Loading branch information
Albert Lee authored and Jeff Garzik committed Aug 23, 2005
1 parent 8c8cf6e commit cfaebf0
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 443d089703ffa585aea1af47c68f1be5d0ec3115
refs/heads/master: 3f3791d30036a367f05b9d0be28ce7ff2e017a5a
7 changes: 6 additions & 1 deletion trunk/drivers/scsi/libata-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -3213,9 +3213,14 @@ void ata_qc_complete(struct ata_queued_cmd *qc, u8 drv_stat)
if (likely(qc->flags & ATA_QCFLAG_DMAMAP))
ata_sg_clean(qc);

/* 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)
*/
qc->flags &= ~ATA_QCFLAG_ACTIVE;

/* call completion callback */
rc = qc->complete_fn(qc, drv_stat);
qc->flags &= ~ATA_QCFLAG_ACTIVE;

/* if callback indicates not to complete command (non-zero),
* return immediately
Expand Down

0 comments on commit cfaebf0

Please sign in to comment.