linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Gwendal Grignou <gwendal@google.com>
To: jgarzik@pobox.com
Cc: linux-ide@vger.kernel.org, Gwendal Grignou <gwendal@google.com>
Subject: Re: [PATCH] When a disk needs to be waken up from sleep, ensure that the command is retried by SCSI EH.
Date: Thu, 6 Aug 2009 10:28:01 -0700	[thread overview]
Message-ID: <e7510f760908061028o1b005c4wd2552c24fc619d9e@mail.gmail.com> (raw)
In-Reply-To: <1249579547-21091-1-git-send-email-gwendal@google.com>

The explanation did not go through git-send-email:

 Without this fix, ATA passthrough commands are not resend to the
drive, and no error is
 signalled to the caller because:
 - allowed retry count is 1
 - ata_eh_qc_complete fill the sense data, so result is valid
 - sense data is filled with untouched ATA registers.

Gwendal.

On Thu, Aug 6, 2009 at 10:25 AM, Gwendal Grignou<gwendal@google.com> wrote:
>
> 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
>
>

  reply	other threads:[~2009-08-06 17:28 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e7510f760908061028o1b005c4wd2552c24fc619d9e@mail.gmail.com \
    --to=gwendal@google.com \
    --cc=jgarzik@pobox.com \
    --cc=linux-ide@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).