From: "Nicholas A. Bellinger" <nab@linux-iscsi.org>
To: James Bottomley <James.Bottomley@HansenPartnership.com>
Cc: lsf-pc <lsf-pc@lists.linux-foundation.org>,
"Roland Dreier" <roland@kernel.org>,
linux-scsi <linux-scsi@vger.kernel.org>,
"Hannes Reinecke" <mail@hannes-reinecke.de>,
"Madhu Iyengar" <madhu.iyengar@qlogic.com>,
target-devel <target-devel@vger.kernel.org>,
"Andrew Vasquez" <andrew.vasquez@qlogic.com>,
"Christoph Hellwig" <hch@lst.de>, "Jörn Engel" <joern@logfs.org>,
"Arun Easi" <arun.easi@qlogic.com>,
"Linus Torvalds" <torvalds@linux-foundation.org>
Subject: Re: [Lsf-pc] [LSF/MM TOPIC] [ATTEND] qla2xxx FC target mode
Date: Tue, 20 Mar 2012 21:12:13 -0700 [thread overview]
Message-ID: <1332303133.3136.113.camel@haakon2.linux-iscsi.org> (raw)
In-Reply-To: <1332234189.14019.19.camel@dabdike.int.hansenpartnership.com>
On Tue, 2012-03-20 at 09:03 +0000, James Bottomley wrote:
> On Mon, 2012-03-19 at 17:15 -0700, Nicholas A. Bellinger wrote:
> > On Mon, 2012-03-19 at 08:54 +0000, James Bottomley wrote:
> > > On Sun, 2012-03-18 at 17:22 -0700, Nicholas A. Bellinger wrote:
> > > > On Sun, 2012-03-18 at 09:22 +0000, James Bottomley wrote:
> > > > > On Fri, 2012-03-16 at 16:40 -0700, Nicholas A. Bellinger wrote:
> > > > > > James & Co,
> > > > > >
> > > > > > Ping..? Any thoughts on this topic yet..?
> > > > >
> > > > > Not really ... we're trying to get the participants to plan the topics
> > > > > this year.
> > > > >
> > > >
> > > > Hi James,
> > > >
> > > > I'm asking because the invites for an LSF slot this year to discuss this
> > > > topic with the development community has not materialized, and you've
> > > > been completely silent to qla2xxx target RFCs + patches that involve the
> > > > subject thus far..
> > >
> > > It's not my driver, it's qlogic's ... I'm not really going to say
> > > anything until they do.
> >
> > Well, I think most of the questions unresolved around mixed mode that
> > need to be addressed between scsi-core and target-core for-3.5 are
> > really quite generic in nature to the individual scsi LLD.
>
> They are? I understood it was highly firmware (and even hardware)
> dependent from conversations with various manufacturers.
There are certainly fw/hw specific considerations for transitions
between modes in order to safety shutdown active I/O, manage active port
state, reallocate hw resources, etc.
I think we now are reasonably clear on the qla2xxx specifics required to
do these transitions, but we are currently lacking some extra glue
between scsi-core and target-core to make this work beyond what's
proposed for v3.4 to use module parameters + requiring an LLD re-load in
order to switch active modes.
> > Currently where we run into difficultly with a storage stack that is
> > made to allow 'hot' transition between different modes of operation, is
> > how to relinquish initiator mode operation w/o having to unload the
> > whole SCSI LLD, and also how to re-enable initiator mode when an
> > individual TCM fabric port have been released by a generic wwn_group
> > object under /sys/kernel/config/target/$FABRIC/$FABRIC_WWPN
> >
> > So considering these current limitations here between subsystems for the
> > initial for-3.4 merge of qla_target.c logic, we now enforce the use of a
> > qla2xxx specific module parameter to enable/disable different modes
> > globally for all qla_hw_data ports at LLD load time.
> >
> > I've asked Andrew V. and Co. to take another look at today's linux-next
> > tree to verify the changes for existing code in patch #2 for >= qla24xx
> > series target mode support do not negatively effect the existing
> > initiator mode operation of qla2xxx in any way.
> >
> > Please let us know if you have any concerns.
>
> Why can't it just work like scsi_tgt? That has a separate queue for
> target. The two queue model is then mediated inside the LLD. If the
> LLD can't switch at all, it only accepts one queue attachment at init
> time (either target or initiator). If there's some pain to switching,
> you still have to unload one before switching to the other (effectingely
> this means quiescing and stopping the unloaded queue), and if it can
> autoswitch, you just run two queues and let it sort out the ordering.
>
So I think one part we need is the ability of scsi-core to be able to
quiesce queues and release initiator mode SCSI LUNs, but not release
struct scsi_host (or unload the LLD). The ability to do this and set
hostt->supported_mode = MODE_TARGET is IMHO a requirement for properly
doing active mode transition properly across scsi and target subsystems.
We also need to ability to reset hostt->supported_mode = MODE_INITIATOR,
and force a scsi-core rescan (via scsi sysfs) once struct scsi_host has
been relinquished by an /sys/kernel/config/target/$FABRIC/$FABRIC_WWPN/
configfs object reference. I think this part is more straight-forward
than the first, and should be able to re-use existing rescan logic for
doing this..
Do you have any preference about how these scsi sysfs trigger might
look..?
--nab
prev parent reply other threads:[~2012-03-21 4:12 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-29 0:27 [LSF/MM TOPIC] [ATTEND] qla2xxx FC target mode Nicholas A. Bellinger
2012-03-16 23:40 ` Nicholas A. Bellinger
2012-03-18 9:22 ` [Lsf-pc] " James Bottomley
2012-03-19 0:22 ` Nicholas A. Bellinger
2012-03-19 8:54 ` James Bottomley
2012-03-20 0:15 ` Nicholas A. Bellinger
2012-03-20 9:03 ` James Bottomley
2012-03-21 4:12 ` 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=1332303133.3136.113.camel@haakon2.linux-iscsi.org \
--to=nab@linux-iscsi.org \
--cc=James.Bottomley@HansenPartnership.com \
--cc=andrew.vasquez@qlogic.com \
--cc=arun.easi@qlogic.com \
--cc=hch@lst.de \
--cc=joern@logfs.org \
--cc=linux-scsi@vger.kernel.org \
--cc=lsf-pc@lists.linux-foundation.org \
--cc=madhu.iyengar@qlogic.com \
--cc=mail@hannes-reinecke.de \
--cc=roland@kernel.org \
--cc=target-devel@vger.kernel.org \
--cc=torvalds@linux-foundation.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).