libata: remove reading alt_status from ata_hsm_qc_complete()
authorAlbert Lee <albertcc@tw.ibm.com>
Thu, 28 Jun 2007 02:05:31 +0000 (10:05 +0800)
committerJeff Garzik <jeff@garzik.org>
Mon, 2 Jul 2007 14:12:34 +0000 (10:12 -0400)
In ata_hsm_qc_complete():
Calling ata_altstatus() after the qc is completed might race with next qc. Remove it.

Signed-off-by: Albert Lee <albertcc@tw.ibm.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/libata-core.c

index bfc59a10472826ec1d07555943cb6f7531af0aa1..95671d6a0ce5c631d88c849972b7fdc86d801fd5 100644 (file)
@@ -4781,8 +4781,6 @@ static void ata_hsm_qc_complete(struct ata_queued_cmd *qc, int in_wq)
                } else
                        ata_qc_complete(qc);
        }
-
-       ata_altstatus(ap); /* flush */
 }
 
 /**