From: James Bottomley <James.Bottomley@suse.de>
To: "Nicholas A. Bellinger" <nab@linux-iscsi.org>
Cc: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>,
stgt@vger.kernel.org, linux-scsi@vger.kernel.org,
linux-kernel@vger.kernel.org, michaelc@cs.wisc.edu,
bharrosh@panasas.com, dgilbert@interlog.com
Subject: Re: [PATCH 0/3] Add proper STGT <-> bs_sg passthrough v3
Date: Tue, 20 Jul 2010 16:17:00 -0700 [thread overview]
Message-ID: <1279667820.6594.18.camel@mulgrave.site> (raw)
In-Reply-To: <1275956389.6498.8.camel@haakon2.linux-iscsi.org>
On Mon, 2010-06-07 at 17:19 -0700, Nicholas A. Bellinger wrote:
> On Tue, 2010-06-08 at 08:45 +0900, FUJITA Tomonori wrote:
> > On Mon, 07 Jun 2010 01:27:16 -0700
> > "Nicholas A. Bellinger" <nab@linux-iscsi.org> wrote:
> >
> > > On Mon, 2010-06-07 at 15:45 +0900, FUJITA Tomonori wrote:
> > > > On Sun, 6 Jun 2010 20:50:15 -0700
> > > > "Nicholas A. Bellinger" <nab@linux-iscsi.org> wrote:
> > > >
> > > > > From: Nicholas Bellinger <nab@linux-iscsi.org>
> > > > >
> > > > > Greeting STGT folks,
> > > > >
> > > > > This is the third round of patches for adding proper LUN passthrough support into STGT
> > > > > using struct scsi_lu->cmd_perform() and struct scsi_lu->cmd_done() callers with existing
> > > > > SG_IO and the new BSG v4 backstores.
> > > > >
> > > > > Following Tomo-san's input, the changelog between v2 -> v3 is as follows:
> > > > >
> > > > > 1) Add struct device_type_template sg_template for SG_IO and BSG in usr/bs_sg.c instead
> > > > > of making changes to usr/sbc.c
> > > > >
> > > > > 2) Add struct backingstore_template->bs_passthrough member of type int for SG_IO and BSG.
> > > > >
> > > > > 3) In usr/target.c:tgt_device_create() pass bst->bs_passthrough into device_type_lookup()
> > > > > and for passthrough case use the new device_type_passthrough() to locate
> > > > > struct device_type_template sg_template.
> > > > >
> > > > > 4) Remove unnecessary post_cmd_done() from usr/target.c:__cmd_done_passthrough()
> > > > >
> > > > > This patch series has been tested with STGT/iSCSI using 'sg'+'bsg' and 'rdwr' for non
> > > > > passthrough mode backstores into TCM_Loop LLD emulated iSCSI target ports.
> > > > >
> > > > > Best,
> > > > >
> > > > > Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org
> > > > >
> > > > > Nicholas Bellinger (3):
> > > > > [tgt]: Add proper STGT LUN backstore passthrough support (rev 3)
> > > > > [tgt]: Add bs_sg struct device_type_template sg_template and struct
> > > > > backingstore_template->bs_init()
> > > > > [tgt]: Add BSG v4 backstore support to usr/bs_sg.c
> > > > >
> > > > > usr/bs_sg.c | 247 ++++++++++++++++++++++++++++++++++++++++++++++++++++--
> > > > > usr/scsi_cmnd.h | 7 ++
> > > > > usr/target.c | 113 +++++++++++++++++++++++---
> > > > > usr/tgtd.h | 16 ++++
> > > > > 4 files changed, 362 insertions(+), 21 deletions(-)
> > > >
> > > > The first and second patches Look fine overall. I have some comments
> > > > and wrote some cleanup patches.
> > > >
> > > > I've put the first two patches with my cleanups:
> > > >
> > > > git://git.kernel.org/pub/scm/linux/kernel/git/tomo/tgt.git pass
> > > >
> > > > Can you confirm that it works for you? Then I can merge them into
> > > > master.
> > >
> > > The pass branch works fine using '-E sg -Y pt' for SG_IO backstore <->
> > > fabric LUN assocation with TCM_Loop LLD Target Ports. Thanks for
> > > cleaning things up to use TYPE_PT btw, I should have asked about that
> > > earlier. ;)
> >
> > Thanks for the confirmation. I've merged these patches into master.
> >
> > I'll merge your bsg patch if nobody complains about dropping sg
> > support in a few days.
> >
>
> Perfect, thank you Tomo-san.
Ping on this ... is it actually all working and we could remove the STGT
code in favour of this?
James
next prev parent reply other threads:[~2010-07-20 23:17 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-07 3:50 [PATCH 0/3] Add proper STGT <-> bs_sg passthrough v3 Nicholas A. Bellinger
2010-06-07 6:45 ` FUJITA Tomonori
2010-06-07 8:27 ` Nicholas A. Bellinger
2010-06-07 8:56 ` FUJITA Tomonori
2010-06-07 9:07 ` Nicholas A. Bellinger
2010-06-07 9:35 ` FUJITA Tomonori
2010-06-07 9:40 ` Nicholas A. Bellinger
2010-06-07 23:45 ` FUJITA Tomonori
2010-06-08 0:19 ` Nicholas A. Bellinger
2010-07-20 23:17 ` James Bottomley [this message]
2010-07-20 23:39 ` Nicholas A. Bellinger
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=1279667820.6594.18.camel@mulgrave.site \
--to=james.bottomley@suse.de \
--cc=bharrosh@panasas.com \
--cc=dgilbert@interlog.com \
--cc=fujita.tomonori@lab.ntt.co.jp \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=michaelc@cs.wisc.edu \
--cc=nab@linux-iscsi.org \
--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;
as well as URLs for NNTP newsgroup(s).