diff options
author | Albert Lee <albertcc@tw.ibm.com> | 2006-03-13 22:19:04 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-03-21 20:39:46 -0500 |
commit | 41ade50c4eff9477e6aef6b15e84673c6758ec0d (patch) | |
tree | 5ebacab6c7f783d3363678a666192ee0633f0a91 /drivers/scsi/libata-core.c | |
parent | b142eb6594003d3f82fd552a9b2ad73d774465d2 (diff) |
[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>
Diffstat (limited to 'drivers/scsi/libata-core.c')
-rw-r--r-- | drivers/scsi/libata-core.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c index 714b42bad935..a28569d0081d 100644 --- a/drivers/scsi/libata-core.c +++ b/drivers/scsi/libata-core.c | |||
@@ -962,6 +962,8 @@ ata_exec_internal(struct ata_port *ap, struct ata_device *dev, | |||
962 | spin_unlock_irqrestore(&ap->host_set->lock, flags); | 962 | spin_unlock_irqrestore(&ap->host_set->lock, flags); |
963 | 963 | ||
964 | if (!wait_for_completion_timeout(&wait, ATA_TMOUT_INTERNAL)) { | 964 | if (!wait_for_completion_timeout(&wait, ATA_TMOUT_INTERNAL)) { |
965 | ata_port_flush_task(ap); | ||
966 | |||
965 | spin_lock_irqsave(&ap->host_set->lock, flags); | 967 | spin_lock_irqsave(&ap->host_set->lock, flags); |
966 | 968 | ||
967 | /* We're racing with irq here. If we lose, the | 969 | /* We're racing with irq here. If we lose, the |