From: Christoph Hellwig <hch@infradead.org>
To: Hannes Reinecke <hare@suse.de>
Cc: linux-scsi@vger.kernel.org
Subject: Re: EH method APIs
Date: Fri, 4 Apr 2014 00:42:07 -0700 [thread overview]
Message-ID: <20140404074207.GA7586@infradead.org> (raw)
In-Reply-To: <533E6116.2090206@suse.de>
On Fri, Apr 04, 2014 at 09:36:54AM +0200, Hannes Reinecke wrote:
> Have to look into this. Problem is that some eh_XXX callback
> implementations actually are using the command to send the TMF;
> will need to look into them how and if they could be changed.
That's indeed a bit of a problem, guess we need to do an audit
on how the commands are used at the moment.
> Actually, alongside with that change I would update the arguments
> to the callback functions to align with the strategy level;
> eh_device_reset() would be getting struct scsi_device as argument,
> eh_target_reset() would get getting struct scsi_target as argument etc.
>
> So the actual SCSI EH would not be tied to struct scsi_cmnd, and we
> would just be needing something to send TUR etc in the course of
> SCSI EH.
Right. I think the commands should go through the normal BLOCK_PC code
path, we'd just need to make sure they get priority in the request
allocator.
prev parent reply other threads:[~2014-04-04 7:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-04 7:04 EH method APIs Christoph Hellwig
2014-04-04 7:17 ` Hannes Reinecke
2014-04-04 7:24 ` Christoph Hellwig
2014-04-04 7:36 ` Hannes Reinecke
2014-04-04 7:42 ` Christoph Hellwig [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=20140404074207.GA7586@infradead.org \
--to=hch@infradead.org \
--cc=hare@suse.de \
--cc=linux-scsi@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).