public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: "Nicholas A. Bellinger" <nab@linux-iscsi.org>
To: Boaz Harrosh <bharrosh@panasas.com>
Cc: stgt-devel <stgt@vger.kernel.org>,
	linux-scsi <linux-scsi@vger.kernel.org>,
	FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>,
	Mike Christie <michaelc@cs.wisc.edu>,
	James Bottomley <James.Bottomley@suse.de>,
	Douglas Gilbert <dgilbert@interlog.com>,
	Hannes Reinecke <hare@suse.de>, Gerd Hoffmann <kraxel@redhat.com>,
	Kevin Wolf <kwolf@redhat.com>
Subject: Re: [PATCH 1/2] [tgt]: Add proper CDB passthrough for SG_IO backstores
Date: Sun, 30 May 2010 19:45:45 -0700	[thread overview]
Message-ID: <1275273945.32585.34.camel@haakon2.linux-iscsi.org> (raw)
In-Reply-To: <4C023192.9080503@panasas.com>

On Sun, 2010-05-30 at 12:36 +0300, Boaz Harrosh wrote:
> On 05/18/2010 08:13 AM, Nicholas A. Bellinger wrote:
> > From: Nicholas Bellinger <nab@linux-iscsi.org>
> > 
> > This patch updates usr/bs_sg.c:bs_sg_cmd_submit() to process incoming scsi-generic IO
> > of type SG_DXFER_TO_DEV and SG_DXFER_FROM_DEV using a single new struct scsi_cmnd->sg_iovec
> > set using existing scsi_cmd.h scsi_get_[out,in]_[buffer,length]() macros.
> > 
> > It also makes set_cmd_failed() properly return SAM_STAT_CHECK_CONDITION, which is expected
> > by the bs_sg_cmd_submit() caller in usr/scsi.c:scsi_cmd_perform()
> > 
> > Finally, this patch adds struct backingstore_template->bs_passthrough=1 that is used by
> > bs_sg.c here and the next patch to hand off struct scsi_cmd for CDB passthrough.
> > 
> > Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org>
> > ---
> >  usr/bs_sg.c     |   31 ++++++++++++++++++++++++-------
> 
> Why not add a new bs_bsg.c backing store that goes through BSG and not SG
> and do it properly for all type of targets and commands?
> 
> Just a thought.

Greetings Boaz,

I completely agree with you here and think that BSG is the next logical
direction for expanding our target capabilities and for adding some
manner of I_T nexus auto-configuration between STGT userspace fabric
modules <-> TCM_Loop multi-fabric target port LUNs.  That said, I will
start groking BSG and look at adding a new bs_bsg backstore for STGT
soon for extended user -> kernel passthrough ops soon.

Also, the BSG direction is going to make alot of sense with the QEMU-KVM
HBA Emulation <-> TCM_Loop efforts too.   However I believe at least for
megraid_sas that TMRs are handled in the driver for LDs and not
processed directly by the 8708EM2 PowerPC Core firmware. ;)

Best,

--nab



  reply	other threads:[~2010-05-31  2:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-18  5:13 [PATCH 1/2] [tgt]: Add proper CDB passthrough for SG_IO backstores Nicholas A. Bellinger
2010-05-30  9:36 ` Boaz Harrosh
2010-05-31  2:45   ` Nicholas A. Bellinger [this message]
2010-05-31  3:32   ` FUJITA Tomonori
2010-05-31  4:06     ` Nicholas A. Bellinger
2010-05-31  4:25       ` 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=1275273945.32585.34.camel@haakon2.linux-iscsi.org \
    --to=nab@linux-iscsi.org \
    --cc=James.Bottomley@suse.de \
    --cc=bharrosh@panasas.com \
    --cc=dgilbert@interlog.com \
    --cc=fujita.tomonori@lab.ntt.co.jp \
    --cc=hare@suse.de \
    --cc=kraxel@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=michaelc@cs.wisc.edu \
    --cc=stgt@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