diff options
author | Tejun Heo <htejun@gmail.com> | 2005-08-22 10:12:45 +0200 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-08-23 07:05:55 +0200 |
commit | 40e8c82c74b9be793601e098fd1313bc2632c5dc (patch) | |
tree | b3c89b2aaa5d477e8db5acc9bf4ee6f31acf3db8 /drivers/scsi/osst.h | |
parent | [PATCH] fix atapi_packet_task vs. intr race (take 2) (diff) | |
download | linux-40e8c82c74b9be793601e098fd1313bc2632c5dc.tar.xz linux-40e8c82c74b9be793601e098fd1313bc2632c5dc.zip |
[PATCH] libata: implement ata_poll_qc_complete and use it in polling functions
[PATCH libata-dev-2.6:upstream] implement ata_poll_qc_complete and use it in polling functions
Previously, libata polling functions turned irq back on and completed
qc commands without holding host lock. This creates a race condition
between the polling task and interrupts from other ports on the same
host set or spurious interrupt from itself.
This patch implements ata_poll_qc_complete which enables irq and
completes qc atomically and convert all polling functions.
Note: atapi_packet_task() didn't use to turn irq back on or clear
ATA_FLAG_NOINTR on error exits. This patch makes it use
ata_poll_qc_complete which does both.
Note: With this change, ALL invocations of ata_qc_complete() are now
done under host_set lock.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'drivers/scsi/osst.h')
0 files changed, 0 insertions, 0 deletions