public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Douglas Gilbert <dougg@torque.net>
To: Jens Axboe <jens.axboe@oracle.com>
Cc: Jeff Garzik <jeff@garzik.org>, linux-scsi@vger.kernel.org
Subject: Re: RFC: SCSI Generic version 4 interface
Date: Tue, 07 Nov 2006 16:09:24 -0500	[thread overview]
Message-ID: <4550F604.8040205@torque.net> (raw)
In-Reply-To: <20061107153147.GV19471@kernel.dk>

Jens Axboe wrote:
> On Tue, Nov 07 2006, Jeff Garzik wrote:
>> Douglas Gilbert wrote:
>>> I was asked to put together a proposal in May this
>>> year for a new SCSI Generic interface structure. This
>>> is the same structure that is used by the block layer
>>> SG_IO ioctl. A few people have asked whether I had forgotten
>>> that I agreed to write the proposal. So here it is. Those
>>> who have seen it have made comments, some of which have
>>> been incorporated.
>>>
>>> Some shortcomings of the sg version 3 interface are:
>>>  - can't handle commands with bidirectional data (either
>>>    can the SCSI subsystem at the moment)
>>>  - if it was a bit more general it could carry other
>>>    request/response protocols (e.g. Task Management
>>>    Functions and SMP in Serial Attached SCSI)
>>>  - no way of associating a task attribute or task tag
>>>    with a SCSI command
>> Why avoid Jens Axboe's bsg?
>>
>> It seems like that is already a good interface for carrying other 
>> req/resp protocols.
> 
> I don't think Doug is avoiding that (if you are Doug, please do explain
> :-), but rather outlining the next generation command format that bsg
> should support for future use.

In the simplest case this is just the next generation
version of the sg_io_hdr structure used by the SG_IO
ioctl interface. It pitches at about the same level as
modern SCSI transports (e.g. FCP, SAS and iSCSI). It
leaves session and addressing issues, with the exception
(arguably) of tags, to others. The "others" could include
the bsg driver or perhaps a transport layer/driver.

Reference:
  SAM-4 version 7 section 5.1 "The Execute command
                               procedure call"
          http://www.t10.org/ftp/t10/drafts/sam4/sam4r07.pdf

Doug Gilbert


  reply	other threads:[~2006-11-07 21:09 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-06 21:47 RFC: SCSI Generic version 4 interface Douglas Gilbert
2006-11-07  7:48 ` Jeff Garzik
2006-11-07 15:31   ` Jens Axboe
2006-11-07 21:09     ` Douglas Gilbert [this message]
2006-12-07  8:02     ` FUJITA Tomonori
2006-12-07  8:06       ` Jens Axboe
2006-12-07  8:21         ` FUJITA Tomonori
2006-12-07  8:30           ` Jens Axboe
2006-12-07  8:53             ` FUJITA Tomonori
2006-12-07  8:57               ` Jens Axboe
2006-12-07 14:12                 ` FUJITA Tomonori
2006-12-07 14:24                   ` Jens Axboe
2006-11-08  0:47 ` FUJITA Tomonori
2006-11-21 22:06   ` Douglas Gilbert
2006-11-25 16:02     ` FUJITA Tomonori
2006-12-07  8:01       ` FUJITA Tomonori
2006-11-08 16:48 ` Jeremy Linton
2006-11-08 17:22   ` Matthew Wilcox
2006-11-09  0:52     ` FUJITA Tomonori
2006-11-09  0:44   ` FUJITA Tomonori

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=4550F604.8040205@torque.net \
    --to=dougg@torque.net \
    --cc=jeff@garzik.org \
    --cc=jens.axboe@oracle.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