linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] When a disk needs to be waken up from sleep, ensure that the command is retried by SCSI EH.
@ 2009-08-06 17:25 Gwendal Grignou
  2009-08-06 17:28 ` Gwendal Grignou
  0 siblings, 1 reply; 14+ messages in thread
From: Gwendal Grignou @ 2009-08-06 17:25 UTC (permalink / raw)
  To: jgarzik; +Cc: linux-ide, Gwendal Grignou


Signed-off-by: Gwendal Grignou <gwendal@google.com>
---
 drivers/ata/libata-core.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index 8ac98ff..5b7616d 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -5145,6 +5145,8 @@ void ata_qc_issue(struct ata_queued_cmd *qc)
 	/* if device is sleeping, schedule reset and abort the link */
 	if (unlikely(qc->dev->flags & ATA_DFLAG_SLEEPING)) {
 		link->eh_info.action |= ATA_EH_RESET;
+		if (qc->scsicmd) 
+			qc->scsicmd->allowed++;
 		ata_ehi_push_desc(&link->eh_info, "waking up from sleep");
 		ata_link_abort(link);
 		return;
-- 
1.5.4.3


^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2013-10-07 19:24 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-06 17:25 [PATCH] When a disk needs to be waken up from sleep, ensure that the command is retried by SCSI EH Gwendal Grignou
2009-08-06 17:28 ` Gwendal Grignou
2009-08-07  8:34   ` Tejun Heo
2009-08-07 22:19     ` Gwendal Grignou
2009-08-07 22:26       ` Gwendal Grignou
2009-08-07 22:37         ` Tejun Heo
2009-08-07 23:06           ` Gwendal Grignou
2009-08-07 23:12             ` Tejun Heo
2009-08-07 23:17               ` [PATCH] When a disk wakes " Gwendal Grignou
2009-08-07 23:23                 ` Tejun Heo
2010-04-22 17:43                   ` Gwendal Grignou
2010-04-22 17:48                     ` Tejun Heo
2013-10-02 18:22                       ` Gwendal Grignou
2013-10-07 19:24                         ` [PATCH] When a disk wakes up from sleep, ensure that the command ?is " Tejun Heo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).