projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b142eb6
)
[PATCH] libata-dev: add flush task to ata_exec_internal()
author
Albert Lee
<albertcc@tw.ibm.com>
Tue, 14 Mar 2006 03:19:04 +0000
(11:19 +0800)
committer
Jeff Garzik
<jeff@garzik.org>
Wed, 22 Mar 2006 01:39:46 +0000
(20:39 -0500)
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>
drivers/scsi/libata-core.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/scsi/libata-core.c
b/drivers/scsi/libata-core.c
index 714b42bad935739af2e3aef58b0856215c029c1b..a28569d0081dfe6e052f63573e4147182c43dfe3 100644
(file)
--- 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,
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