Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 41ade50c authored by Albert Lee's avatar Albert Lee Committed by Jeff Garzik
Browse files

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



Add ata_port_flush_task() to ata_exec_internal().

Signed-off-by: default avatarAlbert Lee <albertcc@tw.ibm.com>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent b142eb65
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -962,6 +962,8 @@ ata_exec_internal(struct ata_port *ap, struct ata_device *dev,
	spin_unlock_irqrestore(&ap->host_set->lock, flags);
	spin_unlock_irqrestore(&ap->host_set->lock, flags);


	if (!wait_for_completion_timeout(&wait, ATA_TMOUT_INTERNAL)) {
	if (!wait_for_completion_timeout(&wait, ATA_TMOUT_INTERNAL)) {
		ata_port_flush_task(ap);

		spin_lock_irqsave(&ap->host_set->lock, flags);
		spin_lock_irqsave(&ap->host_set->lock, flags);


		/* We're racing with irq here.  If we lose, the
		/* We're racing with irq here.  If we lose, the