[PATCH] libata-dev: add flush task to ata_exec_internal()

Add ata_port_flush_task() to ata_exec_internal().

Signed-off-by: Albert Lee <albertcc@tw.ibm.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
Albert Lee 2006-03-14 11:19:04 +08:00 committed by Jeff Garzik
parent b142eb6594
commit 41ade50c4e
1 changed files with 2 additions and 0 deletions

View File

@ -962,6 +962,8 @@ ata_exec_internal(struct ata_port *ap, struct ata_device *dev,
spin_unlock_irqrestore(&ap->host_set->lock, flags);
if (!wait_for_completion_timeout(&wait, ATA_TMOUT_INTERNAL)) {
ata_port_flush_task(ap);
spin_lock_irqsave(&ap->host_set->lock, flags);
/* We're racing with irq here. If we lose, the