From: Tejun Heo <htejun@gmail.com>
To: ltuikov@yahoo.com
Cc: Patrick Mansfield <patmans@us.ibm.com>,
Jeff Garzik <jgarzik@pobox.com>,
hch@lst.de, James.Bottomley@SteelEye.com,
alan@lxorguk.ukuu.org.uk, albertcc@tw.ibm.com,
arjan@infradead.org, linux-ide@vger.kernel.org,
linux-scsi@vger.kernel.org
Subject: Re: [PATCH 1/2] SCSI: implement scsi_eh_schedule_cmd()
Date: Thu, 20 Apr 2006 11:07:11 +0900 [thread overview]
Message-ID: <4446ECCF.7080000@gmail.com> (raw)
In-Reply-To: <20060419184916.22608.qmail@web31809.mail.mud.yahoo.com>
Luben Tuikov wrote:
> Hi Tejun,
>
> --- Tejun Heo <htejun@gmail.com> wrote:
>> So, what's your suggestion here? Do you think libata should do such
>> things with its own mechanism?
>
> Your instinct is correct. Anything between I and T, as in I_T, is SDS
> domain. That is, SAM doesn't have a _context_ for anything between the I and T.
> (In SATA's case I_T_L, of course.)
>
> So this is why you shouldn't call SCSI's ER without context, as in "Hey,
> neither command, nor device is broken, but do some ER for me." Such work belongs
> in your SATA Layer, unless either a device or command is involved, as we discussed.
>
> Handle protocol ER in your SATA layer. Note however that most of your ER could
> be done on behalf of a command or device, since of course, a device or command(s)
> end up being affected. Basically "do as little as possible but no less" technique.
>
Hello, Luben.
I see your point regarding SAM. If this is the consensus among SCSI
developers, I guess eh_schedule_host() shouldn't be added.
Hmmm.. libata isn't SCSI. It's just hitch-hiking on the back of SCSI at
the moment. And, being able to invoke EH on the host directly makes
things a lot simpler for libata. So, what do you think about just
adding shost->host_eh_scheduled, adding a condition to
scsi_error_handler() and export scsi_eh_wakeup()? The changes will be
like three lines. And, also, ->host_eh_scheduled can be marked as hack
for libata. libata can handle the rest.
This may not be the most graceful thing to do but...
1. SCSI change is minimal
2. it's a temporary measure (moving libata out of SCSI is one of the
items on my agenda and if no one else does it I'm gonna give a shot at
it in not-so-distant future. Once libata is gone of SCSI, the three
lines can be removed.)
3. It will take a lot more work to achieve the same thing in libata
proper without the three line change.
Luben, what do you think?
James and Jeff, any opinion on this matter?
Thanks.
--
tejun
next prev parent reply other threads:[~2006-04-20 2:07 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-01 10:38 [PATCH] SCSI: implement scsi_eh_schedule() Tejun Heo
2006-04-01 20:14 ` Jeff Garzik
2006-04-02 1:15 ` Tejun Heo
2006-04-02 16:04 ` [PATCH 1/2] SCSI: implement scsi_eh_schedule_cmd() Tejun Heo
2006-04-02 16:06 ` [PATCH 2/2] SCSI: implement scsi_eh_schedule_host() Tejun Heo
2006-04-11 17:43 ` Jeff Garzik
2006-04-02 23:49 ` [PATCH 1/2] SCSI: implement scsi_eh_schedule_cmd() Luben Tuikov
2006-04-03 1:24 ` Tejun Heo
2006-04-11 17:41 ` Jeff Garzik
2006-04-11 21:28 ` Patrick Mansfield
2006-04-12 2:21 ` Tejun Heo
2006-04-12 8:24 ` Luben Tuikov
2006-04-12 16:18 ` Patrick Mansfield
2006-04-13 5:32 ` Tejun Heo
2006-04-14 8:49 ` Luben Tuikov
2006-04-14 12:02 ` Tejun Heo
2006-04-19 18:49 ` Luben Tuikov
2006-04-20 2:07 ` Tejun Heo [this message]
2006-04-20 13:01 ` Christoph Hellwig
2006-04-21 2:22 ` Tejun Heo
2006-04-20 19:23 ` Luben Tuikov
2006-04-21 2:39 ` 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=4446ECCF.7080000@gmail.com \
--to=htejun@gmail.com \
--cc=James.Bottomley@SteelEye.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=albertcc@tw.ibm.com \
--cc=arjan@infradead.org \
--cc=hch@lst.de \
--cc=jgarzik@pobox.com \
--cc=linux-ide@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=ltuikov@yahoo.com \
--cc=patmans@us.ibm.com \
/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).