public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: Liran Schour <LIRANS@il.ibm.com>
Cc: linux-scsi@vger.kernel.org, Muli Ben-Yehuda <MULI@il.ibm.com>
Subject: Re: Bidirectional support
Date: Tue, 18 Nov 2003 17:50:15 +0000	[thread overview]
Message-ID: <20031118175015.A29355@infradead.org> (raw)
In-Reply-To: <OFADB546DA.E3228E33-ONC2256DE2.005FDDD5-C2256DE2.0061252A@il.ibm.com>; from LIRANS@il.ibm.com on Tue, Nov 18, 2003 at 07:41:05PM +0200

On Tue, Nov 18, 2003 at 07:41:05PM +0200, Liran Schour wrote:
> The OSD standard requires support for bidirectional commands (write and get
> obj attribute at the same command for example). The SAM-3 defines that in
> order to execute a SCSI command the caller should supply an input an output
> buffer. It seems that in the current Linux SCSI implementation the API
> accept only one buffer, input our output buffer depends on the
> data_direction flag.
> Is there some work going on trying to implement bidirectional support?

I haven't heard about such work beeing done.

> Is it sound reasonable to extend the scatter-gather structure to include
> data direction flag and by that bypass the interface problem and allow
> support for bidirectional commands?

Why do you need the flag in the scatterlist?  We already have a dma_direction
enum in the scsi_cmnd that's pased to the dma mapping routines, it may
be DMA_BIDRECTIONAL although that's currently not used by any code.


  reply	other threads:[~2003-11-18 17:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-18 17:41 Bidirectional support Liran Schour
2003-11-18 17:50 ` Christoph Hellwig [this message]
2003-11-18 20:02   ` Liran Schour

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=20031118175015.A29355@infradead.org \
    --to=hch@infradead.org \
    --cc=LIRANS@il.ibm.com \
    --cc=MULI@il.ibm.com \
    --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