lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 7 Jun 2010 15:45:27 +0900
From:	FUJITA Tomonori <fujita.tomonori@....ntt.co.jp>
To:	nab@...ux-iscsi.org
Cc:	stgt@...r.kernel.org, linux-scsi@...r.kernel.org,
	linux-kernel@...r.kernel.org, fujita.tomonori@....ntt.co.jp,
	michaelc@...wisc.edu, bharrosh@...asas.com,
	James.Bottomley@...e.de, dgilbert@...erlog.com
Subject: Re: [PATCH 0/3] Add proper STGT <-> bs_sg passthrough v3

On Sun,  6 Jun 2010 20:50:15 -0700
"Nicholas A. Bellinger" <nab@...ux-iscsi.org> wrote:

> From: Nicholas Bellinger <nab@...ux-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@...ux-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.

Let's leave bsg support alone and focus on the sg support for now.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ