linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] Add proper STGT <-> bs_sg passthrough v3
@ 2010-06-07  3:50 Nicholas A. Bellinger
  2010-06-07  6:45 ` FUJITA Tomonori
  0 siblings, 1 reply; 11+ messages in thread
From: Nicholas A. Bellinger @ 2010-06-07  3:50 UTC (permalink / raw)
  To: stgt-devel, linux-scsi, linux-kernel, FUJITA Tomonori, Mike
  Cc: James Bottomley, Douglas Gilbert, Nicholas Bellinger

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(-)

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2010-07-20 23:39 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2010-07-20 23:39           ` Nicholas A. Bellinger

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).