From: Christoph Hellwig <hch@infradead.org>
To: Benny Halevy <bhalevy@panasas.com>
Cc: Christoph Hellwig <hch@infradead.org>,
linux-scsi@vger.kernel.org, Mike Christie <mchristi@redhat.com>,
James Bottomley <James.Bottomley@SteelEye.com>,
Jens Axboe <jens.axboe@oracle.com>, Dalit Naor <DALIT@il.ibm.com>,
Liran Schour <LIRANS@il.ibm.com>,
Sami.Iren@seagate.com, Daniel.E.Messinger@seagate.com,
stuart.brodsky@seagate.com, open-iscsi@googlegroups.com,
Boaz Harrosh <bharrosh@panasas.com>
Subject: Re: [RFC] support for bidirectional transfers and variable length CDBs
Date: Sun, 29 Oct 2006 13:48:52 +0000 [thread overview]
Message-ID: <20061029134852.GB22902@infradead.org> (raw)
In-Reply-To: <4544ADB3.8050708@panasas.com>
On Sun, Oct 29, 2006 at 03:33:39PM +0200, Benny Halevy wrote:
> >though.
> >
> I'm not sure I understand exactly when these helpers are to be used.
> Can you point me at more info please?
> Does this solve the dependency of scsi on struct request for buffer mapping?
> (i.e. will this be used in the scsi_init_io() path instead of calling
> blk_rq_map_kern()
> or the calls to the block layer in scsi_merge_bio()?)
No, not at all. It's intended to replace the direct calls to the dma
mapping helpers (or kmap calls) in the low level scsi drivers. That
way they don't need to know how we represent the storage for the
<request_buffer, request_bufflen, use_sg, sglist_len> tuple given
the we plan to change it and 95% of the driver don't need to know
the details, they just want to dma map whatever is there.
> >We might aswell change scsi_execute_async to just support bidi and varlen
> >commands in the end. There's very few user and having yet another API
> >to submit scsi commands doesn't sound very helpfull.
> >
> cool. and what about scsi_execute? are you ok with changing it too or
> would you
> rather add a new synchronous API call for bidi. The reason I'm asking is
> that
> it doesn't currently allocate a scsi_io_context and therefore it's more
> efficient
> than the async api.
My vague feeling is that I'd prefer not to touch scsi_execute because it's
used quite a lot and also in relatively fasthpathes. We'll have to decice
whether to update it, introduce a wrapper like scsi_execute_bidi or
just opencode that in the callers if there are only a few.
> > - you submit your patch that fixes the scsi_execute comment typo
> > - you submit your patch to add the VARLEN_CDB opcode
> > - you start converting as many as possible drivers to the
> > above wrapper API (I already had a big FC card vendor signed up
> > for this, but no updates so far..)
> >
> fine with me, if ok with them too, please send them my way so they can send
> us whatever they've done already.
I haven't seen anything yet, that's why I added the sneaky comment here.
I expect the relevant parties will answer this mail next week ;-)
next prev parent reply other threads:[~2006-10-29 13:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4541F822.70700@panasas.com>
2006-10-28 16:36 ` [RFC] support for bidirectional transfers and variable length CDBs Christoph Hellwig
2006-10-29 13:33 ` Benny Halevy
2006-10-29 13:48 ` Christoph Hellwig [this message]
2006-10-30 12:55 ` James Smart
2006-10-29 19:30 ` Matthew Wilcox
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=20061029134852.GB22902@infradead.org \
--to=hch@infradead.org \
--cc=DALIT@il.ibm.com \
--cc=Daniel.E.Messinger@seagate.com \
--cc=James.Bottomley@SteelEye.com \
--cc=LIRANS@il.ibm.com \
--cc=Sami.Iren@seagate.com \
--cc=bhalevy@panasas.com \
--cc=bharrosh@panasas.com \
--cc=jens.axboe@oracle.com \
--cc=linux-scsi@vger.kernel.org \
--cc=mchristi@redhat.com \
--cc=open-iscsi@googlegroups.com \
--cc=stuart.brodsky@seagate.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