[PATCH] libata: clear ap->active_tag atomically w.r.t. command completion
authorTejun Heo <htejun@gmail.com>
Mon, 15 May 2006 11:57:32 +0000 (20:57 +0900)
committerTejun Heo <htejun@gmail.com>
Mon, 15 May 2006 11:57:32 +0000 (20:57 +0900)
commit7401abf2f44695ef44eef47d5deba1c20214a063
tree582a02c76d1d975846bd779923d715cb617efef9
parentf8c2c4202d86e14ca03b7adc7ebcb30fc74b24e1
[PATCH] libata: clear ap->active_tag atomically w.r.t. command completion

ap->active_tag was cleared in ata_qc_free().  This left ap->active_tag
dangling after ata_qc_complete().  Spurious interrupts inbetween could
incorrectly access the qc.  Clear active_tag in ata_qc_complete().
This change is necessary for later EH changes.

Signed-off-by: Tejun Heo <htejun@gmail.com>
drivers/scsi/libata-core.c