From: james.smart@broadcom.com (James Smart)
Subject: nvme-fc unregister remote port
Date: Fri, 12 Jan 2018 15:23:17 -0800 [thread overview]
Message-ID: <1d5a271d-3622-8b5d-08fc-9ab344a7933c@broadcom.com> (raw)
In-Reply-To: <0F0B1C8F-68EA-49B4-A8A6-E9787D8A94CB@cavium.com>
On 1/12/2018 2:25 PM, Trapp, Darren wrote:
> During the unregister remote process, we stop all the q?s, kill the IO (including AEN?s) and try and send a disconnect to the target via a LS request. But, that request fails since __nvme_fc_send_ls_req first checks to ensure the remote port is ONLINE. It won?t be since the unregister_remoteport sets the state to DELETED.
>
> The disconnect never goes to the target to make an orderly shutdown/cleanup. The target will eventually figure it out when the keep alive?s stop coming. But it seams we should do an orderly shutdown when we can.
Well - it depends on why you are unregistering. In most cases, the
driver is calling unregister as it has logged out of the port - so
there's nothing there to send the disconnect to.
If you're concerned about driver unload or reset paths - where the
target is present up to that point, I guess it could be better behaved.
I don't know that it's mandatory as initiator and target have to manage
the surprise removal cases.
If that's what you're looking for, we could look into adding a flag to
unregister, or perhaps a slightly different method if we want to keep
interface compatibility - to have the transport delete the controllers
before acting on the unregister.
-- james
next prev parent reply other threads:[~2018-01-12 23:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-12 22:25 nvme-fc unregister remote port Trapp, Darren
2018-01-12 23:23 ` James Smart [this message]
2018-01-18 15:54 ` Trapp, Darren
2018-01-18 16:18 ` James Smart
2018-01-18 16:23 ` Trapp, Darren
2018-01-18 16:44 ` James Smart
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=1d5a271d-3622-8b5d-08fc-9ab344a7933c@broadcom.com \
--to=james.smart@broadcom.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