linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: FUJITA Tomonori <tomof@acm.org>
To: seokmann.ju@qlogic.com
Cc: tomof@acm.org, andrew.vasquez@qlogic.com,
	linux-scsi@vger.kernel.org, James.Bottomley@SteelEye.com,
	michaelc@cs.wisc.edu, hare@suse.de,
	fujita.tomonori@lab.ntt.co.jp
Subject: Re: [PATCH 4/5] qla2xxx: add target mode support
Date: Sun, 23 Sep 2007 23:15:16 +0900	[thread overview]
Message-ID: <20070923231416K.tomof@acm.org> (raw)
In-Reply-To: <46F3D66A.9010000@qlogic.com>

On Fri, 21 Sep 2007 07:34:18 -0700
Seokmann Ju <seokmann.ju@qlogic.com> wrote:

> Andrew Vasquez wrote:
> > On Sat, 01 Sep 2007, FUJITA Tomonori wrote:
> > 
> >> This adds target mode support to qla2xxx.
> >>
> >> With set ql2enable_target_mode module parameter to 1, the driver runs
> >> in target mode. By default, ql2enable_target_mode is set to 0, and the
> >> driver should work in initiator mode as before.
> >>
> >> The driver could support dual-mode in the future but it doesn't at the
> >> moment (we need to add dual-mode support tgt first).
> >>
> >> It is based on scst qla2xxx target mode driver. Mike converted the
> >> driver to use tgt long ago. I changed it to use the latest (mainline)
> >> version of qla2xxx driver and tgt, and also converted it to use fc
> >> transport class.
> > 
> > Thanks for doing this.  Some initial comments before a full review is
> > complete, As was seen from the initiator updates needed for 24xx
> > support, there are comparable changes needed in the area of
> > target-mode support for 4gb and 8gb parts.  Also, which ISPs and
> > firmwares were exercised with this code?
> The patch is still under reviewing and will get done, soon.

Great, thinks!


> One quick question on the patch, 
> The tgt core will invoke transfer_response() once it completes the command processing. 
> Could you point out where the actual data transfer is happening if the command required it?
> I guest it should happen in scsi_tgt_kspace_exec(), but not sure where it is happening?

The user-space daemon sends an mapped address then
scsi_tgt_kspace_exec calls blk_rq_map_user against
it. scsi_tgt_cmd_destroy calls blk_rq_unmap_user thats set pages
dirty.

  reply	other threads:[~2007-09-23 14:15 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-31 17:03 [PATCH 4/5] qla2xxx: add target mode support FUJITA Tomonori
2007-09-05 15:05 ` Andrew Vasquez
2007-09-05 13:35   ` FUJITA Tomonori
2007-09-21 14:34   ` Seokmann Ju
2007-09-23 14:15     ` FUJITA Tomonori [this message]
2007-09-27 14:34       ` Seokmann Ju
2007-09-29  6:16         ` FUJITA Tomonori
2007-09-30 10:57           ` Seokmann Ju
2007-09-30 12:13             ` FUJITA Tomonori
2007-10-30 15:03               ` Seokmann Ju
2007-10-01 18:00           ` Seokmann Ju
2007-10-03 12:48             ` FUJITA Tomonori
2007-10-03 19:47               ` Seokmann Ju
2007-10-04  0:44                 ` 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=20070923231416K.tomof@acm.org \
    --to=tomof@acm.org \
    --cc=James.Bottomley@SteelEye.com \
    --cc=andrew.vasquez@qlogic.com \
    --cc=fujita.tomonori@lab.ntt.co.jp \
    --cc=hare@suse.de \
    --cc=linux-scsi@vger.kernel.org \
    --cc=michaelc@cs.wisc.edu \
    --cc=seokmann.ju@qlogic.com \
    /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).