linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Gwendal Grignou <gwendal@google.com>
To: Tejun Heo <tj@kernel.org>
Cc: jgarzik@pobox.com, linux-ide@vger.kernel.org
Subject: Re: [PATCH] When a disk needs to be waken up from sleep, ensure that the command is retried by SCSI EH.
Date: Fri, 7 Aug 2009 15:19:08 -0700	[thread overview]
Message-ID: <e7510f760908071519m3bb8f120s485f8a0dd0d2259f@mail.gmail.com> (raw)
In-Reply-To: <4A7BE703.3000004@kernel.org>

ATA_QCFLAG_RETRY is already set [by _autopsy()], ata_eh_qc_retry() was
already called, but given retries is 0, we can not reduce it.
However, I will submit a better patch, in ata_eh_qc_retry().

Gwendal.

On Fri, Aug 7, 2009 at 1:34 AM, Tejun Heo<tj@kernel.org> wrote:
> Gwendal Grignou wrote:
>> 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
My mistake: __ata_eh_qc_complete() instead of ata_eh_qc_complete().
>>  - sense data is filled with untouched ATA registers.
>
> Would setting ATA_QCFLAG_RETRY achieve the same result?
>
> Thanks.
>
> --
> tejun
>

  reply	other threads:[~2009-08-07 22:19 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
2009-08-07  8:34   ` Tejun Heo
2009-08-07 22:19     ` Gwendal Grignou [this message]
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=e7510f760908071519m3bb8f120s485f8a0dd0d2259f@mail.gmail.com \
    --to=gwendal@google.com \
    --cc=jgarzik@pobox.com \
    --cc=linux-ide@vger.kernel.org \
    --cc=tj@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).