linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Hannes Reinecke <hare@suse.de>
To: Christoph Hellwig <hch@infradead.org>
Cc: linux-scsi@vger.kernel.org
Subject: Re: EH method APIs
Date: Fri, 04 Apr 2014 09:36:54 +0200	[thread overview]
Message-ID: <533E6116.2090206@suse.de> (raw)
In-Reply-To: <20140404072400.GA23630@infradead.org>

On 04/04/2014 09:24 AM, Christoph Hellwig wrote:
> On Fri, Apr 04, 2014 at 09:17:21AM +0200, Hannes Reinecke wrote:
>> Plus we don't meddle with block request allocation intrinsics
>> anymore; the SCSI EH command is allocate within the SCSI midlayer,
>> and requests originating from the block layer won't be messed with.
> 
> Any chance we could also switch to a new scsi_tmf structure instead
> of reusing struct scsi_cmnd for that?  It should be a lot smaller
> without all the baggage, and make it clear we're not dealing with a
> command.  That would also solve the scsi_reset_provide issue.
> 
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.

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. Whether that needs to be a struct scsi_cmnd or something
else can discussed.

Cheers,

Hannes
-- 
Dr. Hannes Reinecke		      zSeries & Storage
hare@suse.de			      +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2014-04-04  7:36 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 [this message]
2014-04-04  7:42       ` Christoph Hellwig

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=533E6116.2090206@suse.de \
    --to=hare@suse.de \
    --cc=hch@infradead.org \
    --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).