From: Joe Eykholt <jre@nuovasystems.com>
To: James Smart <James.Smart@Emulex.Com>
Cc: Mike Christie <michaelc@cs.wisc.edu>,
"jeykholt@cisco.com" <jeykholt@cisco.com>,
"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>,
"ajoglekar@nuovasystems.com" <ajoglekar@nuovasystems.com>
Subject: Re: [RFC][PATCH 2/6] fnic: add fnic_scsi.c and fnic_io.h.
Date: Mon, 25 Aug 2008 14:01:35 -0700 [thread overview]
Message-ID: <48B31DAF.3060400@nuovasystems.com> (raw)
In-Reply-To: <48B30A81.9020406@emulex.com>
James Smart wrote:
>
>
> Mike Christie wrote:
>>> Well - what should be happening is - prior to the reset or as part of
>>> it, the fc transport fc_remote_port_delete() call should be made on all
>>> those remote ports that connectivity is about to be terminated on. This
>>> will place all the associated targets/luns on those rports into a
>>> blocked state, and start the devloss timer on them. This will suspend
>>> the eh path as well. Thus, things suspend until either the driver/fcoe
>>
>> What do you mean by that? For lpfc it will or for this driver? This
>> driver does not have that block call like lpfc_block_error_handler, so
>> if the rport event occurs after the scsi eh is running we do not suspend
>> the eh.
>>
>> So below I am saying we should make the lpfc_block_error_handler
>> functionality and the equivalent in the qla2xxx and mpfc common so
>> libfc/fcoe and fnic can use it.
>
> Well there's successive layers of the onion here. And your right, one of
> them is the block_error_handler. Agreed, all of this should be common.
>
> -- james s
>
I think you're both on the right track. When we reset the local port, it should make all
remote ports non-ready ... we no longer have a PLOGI to them. Until we redo FLOGI and
discovery, no SCSI ops will succeed. fc_lport_reset() calls fc_lport_set_fid, which calls
lp_rport_reset_list() ... but that doesn't seem to do much to rports other than the
directory server.
fc_rport_reset() puts the rport in state INIT, but I don't think that's enough. Maybe
that's where the remote port should get blocked. Sound right?
Joe
next prev parent reply other threads:[~2008-08-25 21:16 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-23 2:51 [RFC][PATCH 0/6] fnic: initial submission of driver for FCoE HBA jeykholt
2008-08-23 2:52 ` [RFC][PATCH 1/6] fnic: add main file with module infrastructure, etc jeykholt
2008-08-23 2:52 ` [RFC][PATCH 2/6] fnic: add fnic_scsi.c and fnic_io.h jeykholt
2008-08-25 18:22 ` Mike Christie
2008-08-25 19:15 ` James Smart
2008-08-25 19:31 ` Mike Christie
2008-08-25 19:39 ` James Smart
2008-08-25 21:01 ` Joe Eykholt [this message]
2008-08-25 21:51 ` Mike Christie
2008-08-25 21:55 ` Mike Christie
2008-08-28 1:31 ` Abhijeet Joglekar
2008-08-25 18:41 ` Mike Christie
2008-08-25 19:17 ` James Smart
2008-08-25 19:38 ` Mike Christie
2008-08-23 2:52 ` [RFC][PATCH 3/6] fnic: Add fnic_fcs.c and fnic_attr.c jeykholt
2008-08-23 2:52 ` [RFC][PATCH 4/6] fnic: add resource, interrupt, and firmware interfaces jeykholt
2008-08-23 2:52 ` [RFC][PATCH 5/6] fnic: add queue interfaces jeykholt
2008-08-23 2:53 ` [RFC][PATCH 6/6] fnic: add Makefile, patch Kconfig, MAINTAINERS, pci_ids.h jeykholt
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=48B31DAF.3060400@nuovasystems.com \
--to=jre@nuovasystems.com \
--cc=James.Smart@Emulex.Com \
--cc=ajoglekar@nuovasystems.com \
--cc=jeykholt@cisco.com \
--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