From: James Smart <James.Smart@Emulex.Com>
To: Mike Christie <michaelc@cs.wisc.edu>
Cc: "linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>
Subject: Re: [PATCH 1/3] lpfc 8.2.8 v2 : Revert target busy in favor of transport disrupted
Date: Mon, 8 Sep 2008 15:52:31 -0400 [thread overview]
Message-ID: <48C5827F.5000005@emulex.com> (raw)
In-Reply-To: <48C57863.9050705@cs.wisc.edu>
Mike Christie wrote:
> James Smart wrote:
>> Revert the target busy response in favor of the transport disrupted
>> response for node state transitions.
>
> Do we hit this code path if some other process has set the lpfc ndlp
> state and is calling fc_remote_port_delete? Or can we end up hitting
> this when the fc rport is FC_PORTSTATE_ONLINE (and not going to get
> deleted)? If the former, I had thought target busy was best because I
> thought it was just when we race with the fc_remote_port_delete and the
> ndlp change, and so I thought in this case we just wanted to fail with
> target busy to reflect that it was due to the race and not the transport
> problem that caused the rport deletion. That may not be logical or right
> though :) I do not care either way. I am mostly asking because if we go
> your route then I will send a patch to change the other fc drivers so
> they all do the same thing for this type of case.
It is the former. But, chosing to do one over the other probably isn't
meaningfully different. For the ndlp checks to fail, it is indeed
related to the condition that caused the delete. I figured if it's
deleted, we're better off reporting the disruption now rather than
later. The main reason I moved this direction is because it is the
behavior we've been testing with (with real devices) against the new
fastfail changes.
-- james s
prev parent reply other threads:[~2008-09-08 19:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-07 15:51 [PATCH 1/3] lpfc 8.2.8 v2 : Revert target busy in favor of transport disrupted James Smart
2008-09-08 19:09 ` Mike Christie
2008-09-08 19:52 ` James Smart [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=48C5827F.5000005@emulex.com \
--to=james.smart@emulex.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