From: "Nicholas A. Bellinger" <nab@linux-iscsi.org>
To: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org,
michaelc@cs.wisc.edu, hch@lst.de, hare@suse.de,
James.Bottomley@suse.de, axboe@kernel.dk, bharrosh@panasas.com
Subject: Re: [RFC v2 06/21] tcm: Add fabric and subsystem transport engine core
Date: Tue, 05 Oct 2010 21:54:47 -0700 [thread overview]
Message-ID: <1286340887.5685.102.camel@haakon2.linux-iscsi.org> (raw)
In-Reply-To: <20101006113150S.fujita.tomonori@lab.ntt.co.jp>
On Wed, 2010-10-06 at 11:36 +0900, FUJITA Tomonori wrote:
> On Wed, 22 Sep 2010 15:49:23 -0700
> "Nicholas A. Bellinger" <nab@linux-iscsi.org> wrote:
>
> > From: Nicholas Bellinger <nab@linux-iscsi.org>
> >
> > The patch adds core generic target engine functionality including processing of struct se_cmd
> > generation of N struct se_task, control CDB emulation, sense data, memory allocation, and
> > and mapping from fabric module allocated memory using linked list struct scatterlist
> > style memory based on the limitiations of the underlying TCM HBA and Device backstores.
> >
> > The TCM layer sits is above Linux/SCSI, Linux/BLOCK and Linux/VFS subsystems, and
> > communicates with these subsystems (and local RAMDISK plugins) using an API of function
> > pointers in se_subsystem_api_t. It provides processing capabilties and emulation for SCSI
> > logic and CDBs in a generic manner to storage object LUNs provided from Linux storage
> > subsystems backend storage devices.
> >
> > Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org>
> > ---
> > drivers/target/target_core_scdb.c | 158 +
> > drivers/target/target_core_scdb.h | 15 +
> > drivers/target/target_core_transport.c | 8860 ++++++++++++++++++++++++++++++++
> > include/target/target_core_transport.h | 570 ++
> > 4 files changed, 9603 insertions(+), 0 deletions(-)
> > create mode 100644 drivers/target/target_core_scdb.c
> > create mode 100644 drivers/target/target_core_scdb.h
> > create mode 100644 drivers/target/target_core_transport.c
> > create mode 100644 include/target/target_core_transport.h
>
> Can a driver cleanly overwrite cmd->transport_emulate_cdb? ibmvscsi
> target driver needs to the specific responses for INQUIRY and
> REPORT_LUNS.
>
Hmmmmmm.. Currently the optional cmd->transport_emulate_cdb()
assignment is done from TCM internal code for things like PR and ALUA
CDB emulation, but I cannot see a reason why something similar could not
be exported out into TCM fabric module code with a bit of work.
> I guess that the driver can ignore the response buffer from tcm and
> create the own but it would be nice if the driver can do cleanly.
> --
<nod>, makes perfect sense to me..
Also just FYI, hch has been prodding me to unify the current per
subsystem backstore logic for [iblock,fd,rd,stgt]_emulate_scsi_cdb() and
make any specific CDB emulation that requires non generic code use a CDB
specific struct se_subsystem_api function pointer. I will be looking at
doing this in the next days, and I will see what what can be done for an
patch w/ example case for TCM_Loop to allow CDB context emulation to be
done via the TCM fabric module struct target_core_fabric_ops API.
Thanks Tomo-san!
--nab
prev parent reply other threads:[~2010-10-06 4:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-22 22:49 Nicholas A. Bellinger
2010-10-06 2:36 ` FUJITA Tomonori
2010-10-06 4:54 ` Nicholas A. Bellinger [this message]
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=1286340887.5685.102.camel@haakon2.linux-iscsi.org \
--to=nab@linux-iscsi.org \
--cc=James.Bottomley@suse.de \
--cc=axboe@kernel.dk \
--cc=bharrosh@panasas.com \
--cc=fujita.tomonori@lab.ntt.co.jp \
--cc=hare@suse.de \
--cc=hch@lst.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=michaelc@cs.wisc.edu \
/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
all inboxes | Powered by JetHome®