Skip to content

Commit

Permalink
libata: remove reading alt_status from ata_hsm_qc_complete()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Albert Lee authored and Jeff Garzik committed Jul 2, 2007
1 parent 8c781bf commit 74cdbba
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/ata/libata-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
}

/**
Expand Down

0 comments on commit 74cdbba

Please sign in to comment.