linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tejun Heo <htejun@gmail.com>
To: Jeff Garzik <jeff@garzik.org>
Cc: linux-ide@vger.kernel.org, andrew.m.paprocki@gmail.com,
	ballen@gravity.phys.uwm.edu
Subject: Re: [PATCH #upstream] libata: relocate and fix post-command processing
Date: Thu, 25 Oct 2007 18:41:45 +0900	[thread overview]
Message-ID: <472064D9.20304@gmail.com> (raw)
In-Reply-To: <47206407.4030908@garzik.org>

Jeff Garzik wrote:
> Tejun Heo wrote:
>> Some commands need post-processing after successful completion.  This
>> was done in ata_scsi_qc_complete() till now but this has the following
>> problems.
>>
>> * Post-command processing gets executed when qc is completed from EH.
>>   Some qc's are retried from EH with zero err_mask and thus triggers
>>   unnecessary/incorrect post-command processing.
>>
>> * Command post processing doesn't belong to SAT layer.
>>
>> * Link-wide revalidation was scheduled where device revalidation
>>   suffices.
>>
>> This patch moves post-command processing to success completion path of
>> ata_qc_complete() which is travelled iff the command is going to be
>> completed without passing through EH and updates post-command
>> processing such that device-specific action is used.  While at it,
>> restructure code a bit for readability.
>>
>> Signed-off-by: Tejun Heo <htejun@gmail.com>
> 
> applied
> 
> now if only I had a way for the SAT to issue CHECK POWER MODE (used in 
> TEST UNIT READY translation), and inspect qc->err_mask before EH gets 
> its hands on it...  :)

Yeah, yeah, SAT error pass-through is coming.  :-)

-- 
tejun

      reply	other threads:[~2007-10-25  9:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-25  9:22 [PATCH #upstream] libata: relocate and fix post-command processing Tejun Heo
2007-10-25  9:38 ` Jeff Garzik
2007-10-25  9:41   ` Tejun Heo [this message]

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=472064D9.20304@gmail.com \
    --to=htejun@gmail.com \
    --cc=andrew.m.paprocki@gmail.com \
    --cc=ballen@gravity.phys.uwm.edu \
    --cc=jeff@garzik.org \
    --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).